Undocumented functions of NTDLL

2OO1, 27 January


NtAcceptConnectPort
NtAcceptConnectPort

NTSYSAPI 
NTSTATUS
NTAPI

NtAcceptConnectPort(
OUT PHANDLE ServerPortHandle, IN HANDLE AlternativeReceivePortHandle OPTIONAL, IN PLPC_MESSAGE ConnectionReply, IN BOOLEAN AcceptConnection, IN OUT PLPC_SECTION_OWNER_MEMORY ServerSharedMemory OPTIONAL, OUT PLPC_SECTION_MEMORY ClientSharedMemory OPTIONAL );



NtAcceptConnectPort function is used in LPC communication by server process for establish connection with client. It should be called after NtListenPort completes.

This function returns HANDLE to newly created Port Object. All other LPC functions for currently accepted connection should use this HANDLE, not a base named port HANDLE created with NtCreatePort.


Documented by:
Tomasz Nowak
Bo Branten



Requirements:
Library: ntdll.lib


See also:
LPC_MESSAGE
LPC_SECTION_MEMORY
LPC_SECTION_OWNER_MEMORY
NtCompleteConnectPort
NtCreatePort
NtListenPort