Undocumented functions of NTDLL

2OO1, 15 February


NtImpersonateThread
NtImpersonateThread

NTSYSAPI 
NTSTATUS
NTAPI

NtImpersonateThread(
IN HANDLE ThreadHandle, IN HANDLE ThreadToImpersonate, IN PSECURITY_QUALITY_OF_SERVICE SecurityQualityOfService );



Function NtImpersonateThread assigns one thread's token to another. If source thread don't have associated Token Object, function use process'es token to impersonate destination thread.



Requirements:
Library: ntdll.lib


See also:
NtCreateThread
NtImpersonateClientOfPort
NtOpenThread
SECURITY_QUALITY_OF_SERVICE