Creates a new process which runs in the security context of the calling process.
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
// Start the child process.
BOOL bRetVal = ::CreateProcess( "notepad.exe",
NULL, // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi // Pointer to PROCESS_INFORMATION structure.
Thanks For this, I got My program working and launching an application.
Now can you explain a Method, Which can Launch a Process with Parameters (Sorry Complex Parameters) like for example "taskkill /F /IM vmnat.exe /T" as you can see both side parameters, can you please explain with a snippet of code, how we can use such parameters with the process, we are launching.
Thanx in advance.