   closing a prosses ?
  How can i close a prosses that i just know the prosses name of ?*the one that you see in task mng *I want to do this in cpp.. i Dont know the name of the window (as it change to fast ), just the prosses name. ( "WRUN.exe" )I dont want to notify it at all, just kill the damn prosses... 
  Why don''t you do it from the Task Manager?Poke around at sysinternals.com, there''s some code there that shows one way to do it.  ;  I think you can do like a WM_KILL message or something, but as was said poke around. ;quote:Why don't you do it from the Task Manager?Perhaps a program install/updater, in which it will automatically shutdown a running process for you?  ------------------------------------------------------------// TODO: Insert clever comment here.edit; poor english   [edited by - drowner on February 13, 2004 10:35:05 PM];  i got a patcher that are suposed to overwrite the WRUN.exe file.But i cant do that if the stuff are running.So what i want to do is to close it down.The problem for me is that the title of the WRUN.exe is also the frame counter..So how can i recv the HWND of WRUN.exe without using the title screen ?*i know the WNDCLASSEX name of it tho* = "my_main_window" ;  You can enumerate all the processes on the system with EnumProcesses(), iterate through them and get process handles with OpenProcess(), then use the handle to get the file name with GetProcessImageFileName() and if it matches, use TerminateProcess() to kill it. ;  I had to write something similar to this for work not that long ago.  You can download the final, command-line based application here. 