NtAlpcCreatePort

INT64 __fastcall NtAlpcCreatePort(
        VOID **PortHandle,
        _OBJECT_ATTRIBUTES *ObjectAttributes,
        _ALPC_PORT_ATTRIBUTES *PortAttributes){
  _ETHREAD *CurrentThread; 
  unsigned int ConnectionPort; 
  VOID *Waitable; 
  INT64 LegacyPort; 
  CurrentThread = (_ETHREAD *)KeGetCurrentThread();
  --*((_WORD *)CurrentThread + 242);
  LOBYTE(LegacyPort) = 0;
  LOBYTE(Waitable) = 0;
  ConnectionPort = AlpcpCreateConnectionPort(PortHandle, ObjectAttributes, PortAttributes, 0i64, Waitable, LegacyPort);
  KeLeaveCriticalRegionThread((__int64)KeGetCurrentThread());
  return ConnectionPort;
}

Referenced by:

No references.