minifiredragon
Programmer
I currently have created a process:
STARTUPINFO si;
PROCESS_INFORMATION pi;
GetStartupInfo(&si);
CreateProcess("C:\\Program Files\\Internet Explorer\\iexplore.exe",
"http:\\ // Name of app to launch
NULL, // Default process security attributes
NULL, // Default thread security attributes
FALSE, // Don't inherit handles from the parent
0, // Normal priority
NULL, // Use the same environment as the parent
NULL, // Launch in the current directory
&si, // Startup Information
&pi); // Process information stored upon return
and then go onto do better things.
Now I come to the point I want to Exit the process I created above. I was reading the ExitProcess on MSDN and quite frankly I don't understand (which is why I am here) how to tell the ExitProcess what to exit.
I see you can call:
GetExitCodeProcess
GetExitCodeThread
to get a thread process, but I thought the application was also a process? How do I know I am grabbing the right process to exit?
Help? Please?
STARTUPINFO si;
PROCESS_INFORMATION pi;
GetStartupInfo(&si);
CreateProcess("C:\\Program Files\\Internet Explorer\\iexplore.exe",
"http:\\ // Name of app to launch
NULL, // Default process security attributes
NULL, // Default thread security attributes
FALSE, // Don't inherit handles from the parent
0, // Normal priority
NULL, // Use the same environment as the parent
NULL, // Launch in the current directory
&si, // Startup Information
&pi); // Process information stored upon return
and then go onto do better things.
Now I come to the point I want to Exit the process I created above. I was reading the ExitProcess on MSDN and quite frankly I don't understand (which is why I am here) how to tell the ExitProcess what to exit.
I see you can call:
GetExitCodeProcess
GetExitCodeThread
to get a thread process, but I thought the application was also a process? How do I know I am grabbing the right process to exit?
Help? Please?