冬 冬月 Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-07 #1 知道一个程序的句柄如何用TerminateProcess关闭他,没分的,以后再加给大家把,谢谢
L liwens Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-07 #2 首选取得程序的句柄Handle,可以用FindWindow,然后:<br>定义一个DWORD类型D, <br>GetWindowThreadProcessId(Handle,@D);<br>TerminateProcess(OpenProcess(PROCESS_TERMINATE,False,D),$FFFFFFFF);
首选取得程序的句柄Handle,可以用FindWindow,然后:<br>定义一个DWORD类型D, <br>GetWindowThreadProcessId(Handle,@D);<br>TerminateProcess(OpenProcess(PROCESS_TERMINATE,False,D),$FFFFFFFF);