Sign in to follow this  
Followers 0
x42x4b

problems with ProcessClose (solution)

2 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0