Sign in to follow this  
Followers 0
yakir

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

3 posts in this topic

#1 ·  Posted (edited)

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

Edited by yakir

Share this post


Link to post
Share on other sites



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)

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

 

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