Jump to content

is there a way to get Handle of a process by use it pid?


yakir
 Share

Recommended Posts

is there a way to get Handle of a process by use it pid?

i have a PID and want to get it's Handle using the PID

i try to build a show and hide win script

#Include <WinAPI.au3>
$PID  = Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE)
WinWaitActive("[CLASS:Notepad]")
Dim $PROCESS_ALL_ACCESS = 0x000F0000 + 0x00100000
$Processhandle  = _WinAPI_OpenProcess($PROCESS_ALL_ACCESS, False, $PID , False)
If ($Processhandle) Then MsgBox(0,"",$Processhandle)

صرح السماء كان هنا

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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