For the complete documentation index, see llms.txt. This page is also available as Markdown.

NtOpenProcessToken

[DllImport("ntdll.dll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe NTSTATUS NtOpenProcessToken(
    HANDLE ProcessHandle,
    uint DesiredAccess,
    HANDLE* TokenHandle);

Last updated