win32api.OpenProcess

PyHANDLE = OpenProcess(reqdAccess, bInherit , pid )

Retrieves a handle to an existing process

Parameters

reqdAccess : int

The required access.

bInherit : int

Specifies whether the returned handle can be inherited by a new process created by the current process. If TRUE, the handle is inheritable.

pid : int

The process ID