NtAlpcAcceptConnectPort

NTSTATUS __stdcall NtAlpcAcceptConnectPort(
        VOID **PortHandle,
        VOID *ConnectionPortHandle,
        UINT64 Flags,
        _OBJECT_ATTRIBUTES *ObjectAttributes,
        _ALPC_PORT_ATTRIBUTES *PortAttributes,
        VOID *PortContext,
        _PORT_MESSAGE *ConnectionRequest,
        _ALPC_MESSAGE_ATTRIBUTES *ConnectionMessageAttributes,
        UINT8 AcceptConnection){
  _ETHREAD *CurrentThread; 
  NTSTATUS v10; 
  PORT_VIEW *ServerView; 

  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --CurrentThread->Tcb.KernelApcDisable;
  LOBYTE(ServerView) = AcceptConnection;
  v10 = AlpcpAcceptConnectPort(
          PortHandle,
          (VOID *)((unsigned int)Flags & 0xC0000000),
          (_OBJECT_ATTRIBUTES *)ConnectionPortHandle,
          (_ALPC_PORT_ATTRIBUTES *)ObjectAttributes,
          PortAttributes,
          (PORT_MESSAGE *)PortContext,
          (_ALPC_MESSAGE_ATTRIBUTES *)ConnectionRequest,
          (UINT8)ConnectionMessageAttributes,
          ServerView,
          0i64,
          0);
  KeLeaveCriticalRegionThread(KeGetCurrentThread());
  return v10;
}

Referenced by:

No references.