OpenProcessToken function advapi32
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);