CeCreateProcess (rapi)
Last changed: -152.5.254.18

.
Summary
This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file.

C# Signature:

[DllImport("rapi.dll", CharSet=CharSet.Unicode)]
public static extern int CeCreateProcess(
    string applicationName,
    string commandLineArgs,
    long dwNull0,
    long dwNull1,
    bool False,
    long dwCreationFlags,
    long dwNull2,
    long dwNull3,
    long dwNull4,
    PROCESS_INFORMATION processInfo);

User-Defined Types:

struct PROCESS_INFORMATION
{
   public int hProcess;
   public int hThread;
   public int dwProcessId;
   public int dwThreadId;
}

Notes:

function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeCreateProcessRAPI.asp

Tips & Tricks:

Please add some!

Sample Code:

CeCreateProcess("myapp.exe","",0,0,false,0,0,0,0,new PROCESS_INFORMATION());

Alternative Managed API:

Documentation