Undocumented functions of NTDLL

2OO1, 28 January


Gridstore - NonStop Storage

NtImpersonateClientOfPort
NtImpersonateClientOfPort

NTSYSAPI 
NTSTATUS
NTAPI

NtImpersonateClientOfPort(

IN HANDLE PortHandle, IN PLPC_MESSAGE Request );




NtImpersonateClientOfPort is called by LPC server process to get security context of client. That means: client's Token Object is assiciated with calling server thread (like NtSetInformationThread with ThreadImpersonationToken information class).
  • PortHandle
  •     HANDLE to Port Object opened with NtAcceptConnectPort call.
  • Request
  •     Pointer to LPC_MESSAGE structure contains reason of impersonation.


    Documented by:
    Tomasz Nowak
    Bo Branten



    Requirements:
    Library: ntdll.lib


    See also:
    LPC_MESSAGE
    NtAcceptConnectPort
    NtOpenThreadToken
    NtQueryInformationThread
    NtSetInformationThread