Anybody know what the right .NET Compact Framework dllimport signature is to
call into this API from C#? The correct marshalling has me stumped. Are
these APIs already documentated somewhere for C# developers?

The API definition is:

CreateProcess(
LPCWSTR pszImageName,
LPCWSTR pszCmdLine,
LPSECURITY_ATTRIBUTES psaProcess,
LPSECURITY_ATTRIBUTES psaThread,
BOOL fInheritHandles,
DWORD fdwCreate,
PVOID pvEnvironment,
LPWSTR pszCurDir,
LPSTARTUPINFOW psiStartInfo,
LPPROCESS_INFORMATION pProcInfo );
--
Tim Johnson
High Point Software
www.high-point.com
(503) 312-8625

Re: Declaring .NET dllimport for CreateProcess API by Chris

Chris
Wed Feb 04 20:28:28 CST 2004

Start by heading over to www.OpenNETCF.org. We've got a very large number
of them defined and wrapped in user-friendly shared-source classes.

-Chris

"Tim Johnson" <tjohnson@high-point.com> wrote in message
news:#q$n#V46DHA.2560@TK2MSFTNGP09.phx.gbl...
> Anybody know what the right .NET Compact Framework dllimport signature is
to
> call into this API from C#? The correct marshalling has me stumped. Are
> these APIs already documentated somewhere for C# developers?
>
> The API definition is:
>
> CreateProcess(
> LPCWSTR pszImageName,
> LPCWSTR pszCmdLine,
> LPSECURITY_ATTRIBUTES psaProcess,
> LPSECURITY_ATTRIBUTES psaThread,
> BOOL fInheritHandles,
> DWORD fdwCreate,
> PVOID pvEnvironment,
> LPWSTR pszCurDir,
> LPSTARTUPINFOW psiStartInfo,
> LPPROCESS_INFORMATION pProcInfo );
> --
> Tim Johnson
> High Point Software
> www.high-point.com
> (503) 312-8625
>
>



Re: Declaring .NET dllimport for CreateProcess API by Tim

Tim
Thu Feb 05 13:50:24 CST 2004

Thanks, an excellent pointer!

--
Tim Johnson
High Point Software
www.high-point.com
(503) 312-8625
"Chris Tacke, eMVP" <ctacke[at]Open_NET_CF[dot]org> wrote in message
news:%23L$Gi%2346DHA.2996@tk2msftngp13.phx.gbl...
> Start by heading over to www.OpenNETCF.org. We've got a very large number
> of them defined and wrapped in user-friendly shared-source classes.
>
> -Chris
>
> "Tim Johnson" <tjohnson@high-point.com> wrote in message
> news:#q$n#V46DHA.2560@TK2MSFTNGP09.phx.gbl...
> > Anybody know what the right .NET Compact Framework dllimport signature
is
> to
> > call into this API from C#? The correct marshalling has me stumped.
Are
> > these APIs already documentated somewhere for C# developers?
> >
> > The API definition is:
> >
> > CreateProcess(
> > LPCWSTR pszImageName,
> > LPCWSTR pszCmdLine,
> > LPSECURITY_ATTRIBUTES psaProcess,
> > LPSECURITY_ATTRIBUTES psaThread,
> > BOOL fInheritHandles,
> > DWORD fdwCreate,
> > PVOID pvEnvironment,
> > LPWSTR pszCurDir,
> > LPSTARTUPINFOW psiStartInfo,
> > LPPROCESS_INFORMATION pProcInfo );
> > --
> > Tim Johnson
> > High Point Software
> > www.high-point.com
> > (503) 312-8625
> >
> >
>
>