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

NtOpenThreadToken

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

Last updated