Undocumented functions of NTDLL

2OO1, 15 February


Gridstore - NonStop Storage

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.



  • ThreadHandle
  •     HANDLE to source Thread Object.
  • ThreadToImpersonate
  •     HANDLE to destination Thread Object opened with THREAD_IMPERSONATE access.
  • SecurityQualityOfService
  •     Pointer to SECURITY_QUALITY_OF_SERVICE structure filled by user.


    Documented by:
    Tomasz Nowak
    Reactos



    Requirements:
    Library: ntdll.lib


    See also:
    NtCreateThread
    NtImpersonateClientOfPort
    NtOpenThread
    SECURITY_QUALITY_OF_SERVICE