BOOL ImpersonateNamedPipeClient(hNamedPipe) | |||
HANDLE hNamedPipe; |
The ImpersonateNamedPipeClient function impersonates a named pipe client application.
hNamedPipe
Handle to a named pipe.
The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.
This function allows the server end of the pipe to impersonate the client end. Whenever this function is called, the named pipe file system changes the caller's thread to start impersonating the context of the last message read from the pipe. Only the server end of the pipe is allowed to invoke this function. This function is only supported by local named pipes.
DdeImpersonateClient, RevertToSelf