Undocumented functions of NTDLL

2OOO, 31 December


NtOpenThreadToken
NtOpenThreadToken

NTSYSAPI 
NTSTATUS
NTAPI

NtOpenThreadToken(
IN HANDLE ThreadHandle, IN ACCESS_MASK DesiredAccess, IN BOOLEAN OpenAsSelf, OUT PHANDLE TokenHandle );




Usually Win32 threads don't have associated Tokens. If you want to associate Token for Thread Object, use NtSetInformationThread with ThreadImpersonationToken information class.

Documented by:
Tomasz Nowak
Reactos


Requirements:
Library: ntdll.lib


See also:
NtCreateToken
NtOpenProcessToken
NtOpenThread
NtSetInformationThread
THREAD_INFORMATION_CLASS