x42x4b Posted August 29, 2006 Posted August 29, 2006 Didn't find is "search" so I decided to post it... If someone need to kill process, but ProcessClose (kernel32.dll: TerminateProcess) not working... Here is solution: $pid = ProcessExists ("calc.exe") $dll = DllOpen("kernel32.dll") DllCall('kernel32.dll','ptr','DebugActiveProcess','int',$pid) msgbox(0,"if so...", @error) DllClose($dll) Regards. 1. RTFM | /dev/LOL2. RTFS | /dev/OMG3. FGI | /dev/WTF4. /dev/BBQ :)
x42x4b Posted December 4, 2006 Author Posted December 4, 2006 Any one used it? Remember that, when process is under "debug" it will close with your "debugging" process. I hope, i make myself clear :-). 1. RTFM | /dev/LOL2. RTFS | /dev/OMG3. FGI | /dev/WTF4. /dev/BBQ :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now