win32security.OpenProcessToken

PyHANDLE = OpenProcessToken(processHandle, desiredAccess )

Opens the access token associated with a process.

Parameters

processHandle : int

The handle of the process to open.

desiredAccess : int

Desired access to process