Undocumented functions of NTDLL

2OO1, 28 January


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).
Requirements:
Library: ntdll.lib


See also:
LPC_MESSAGE
NtAcceptConnectPort
NtOpenThreadToken
NtQueryInformationThread
NtSetInformationThread