Undocumented functions of NTDLL

2OO1, 27 January



NtListenPort
NtListenPort

NTSYSAPI 
NTSTATUS
NTAPI

NtListenPort(

IN HANDLE PortHandle, OUT PLPC_MESSAGE ConnectionRequest );




NtListenPort is used by LPC server.
  • PortHandle
  •     HANDLE to named Port Object, created with NtCreatePort.
  • ConnectionRequest
  •     Result of call - pointer to structure LPC_MESSAGE filled with incomming connection data.



    Server process should create new thread starting from execution of NtAcceptConnectPort. Main thread should call NtListenPort again to make possible for other processes to connect to port.


    Documented by:
    Tomasz Nowak
    Bo Branten



    Requirements:
    Library: ntdll.lib


    See also:
    LPC_MESSAGE
    NtAcceptConnectPort
    NtConnectPort
    NtCreatePort