OpenProcessToken function advapi32

int OpenProcessToken(
  1. int ProcessHandle,
  2. int DesiredAccess,
  3. Pointer<IntPtr> TokenHandle
)

The OpenProcessToken function opens the access token associated with a process.

BOOL OpenProcessToken(
  HANDLE  ProcessHandle,
  DWORD   DesiredAccess,
  PHANDLE TokenHandle
);

Implementation

int OpenProcessToken(
        int ProcessHandle, int DesiredAccess, Pointer<IntPtr> TokenHandle) =>
    _OpenProcessToken(ProcessHandle, DesiredAccess, TokenHandle);