meiya 0 Report post Posted September 10, 2008 Ada tak sapa2 yang ada contoh yang simple untuk kill windows process dalam c++? thanks Quote Share this post Link to post Share on other sites
betik 11 Report post Posted October 8, 2008 kalu nak kill dari dalam thread, bole guna ---> ExitProcess(0) kalu nak kill process dari luar..kena tau windows handler...bole guna FindWindow utj dptkan handler tu..bila da ada handler, bole dptkan thread ID guna: GetWindowThreadProcessIdso , bole tutup process tu dgn WM_CLOSE guna PostThreadMessagetp, ada tu, PostThreadMessage akan fail kalu belum ada message queueso, terpaksa guna TerminateProcess (bahya skit sebab child process takkan diterminate dan kalu ada dll, dll yg dipanggil xtau process tu dah diterminate)...try tengok : http://support.microsoft.com/default.aspx?...US;Q178893& Quote Share this post Link to post Share on other sites