View Single Post
Old Sep 19th, 2004, 8:13 PM   #3
Shatai
Newbie
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 6
Rep Power: 0 Shatai is on a distinguished road
Send a message via ICQ to Shatai Send a message via AIM to Shatai Send a message via MSN to Shatai
Hey there,

I advise you explore the option of instead using the ShellExecuteEx function for such a purpose, which will allow you to gain access to the process handle of the console process you spawn.

Naturally, with that process handle, you will be able to call TerminateProcess(HANDLE, UINT) at your own discretion.

Best of luck to you with your endeavour.

References:
http://msdn.microsoft.com/library/en-us/sh....asp?frame=true
http://msdn.microsoft.com/library/en-us/dl....asp?frame=true
Shatai is offline   Reply With Quote