NtAcceptConnectPort

NTSTATUS __stdcall NtAcceptConnectPort(
        VOID **PortHandle,
        VOID *PortContext,
        PORT_MESSAGE *ConnectionRequest,
        UINT8 AcceptConnection,
        PORT_VIEW *ServerView,
        _REMOTE_PORT_VIEW *ClientView){
  _ETHREAD *CurrentThread; 
  NTSTATUS v7; 
  PORT_VIEW *v9; 

  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --CurrentThread->Tcb.KernelApcDisable;
  LOBYTE(v9) = AcceptConnection;
  v7 = AlpcpAcceptConnectPort(
         PortHandle,
         0i64,
         0i64,
         0i64,
         0i64,
         (PORT_MESSAGE *)PortContext,
         (_ALPC_MESSAGE_ATTRIBUTES *)ConnectionRequest,
         0,
         v9,
         (_REMOTE_PORT_VIEW *)ServerView,
         (UINT8)ClientView);
  KeLeaveCriticalRegionThread(KeGetCurrentThread());
  if( v7 == -1073740029 )
    return -1073741813;
  return v7;
}

Referenced by:

No references.