Jump to content

problems with ProcessClose (solution)


 Share

Recommended Posts

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

Link to comment
Share on other sites

  • 3 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...