View Single Post
  #2  
Old 06-28-2006, 03:09 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
If you launch VisBuildCmd.exe via the CreateProcess [1] or related API and include the CREATE_NEW_PROCESS_GROUP flag, you could use the GenerateConsoleCtrlEvent [2] API to send it a CTRL_BREAK_EVENT. Otherwise, you would have to just terminate the process (for instance, using taskkill [3]).

[1] http://msdn.microsoft.com/library/de...ateprocess.asp
[2] http://msdn.microsoft.com/library/de...ectrlevent.asp
[3] http://www.microsoft.com/resources/d....mspx?mfr=true
Reply With Quote