GetQueuedCompletionStatusEx function Null safety kernel32

int GetQueuedCompletionStatusEx(
  1. int CompletionPort,
  2. Pointer<OVERLAPPED_ENTRY> lpCompletionPortEntries,
  3. int ulCount,
  4. Pointer<Uint32> ulNumEntriesRemoved,
  5. int dwMilliseconds,
  6. int fAlertable
)

Retrieves multiple completion port entries simultaneously. It waits for pending I/O operations that are associated with the specified completion port to complete.

BOOL GetQueuedCompletionStatusEx(
  HANDLE             CompletionPort,
  LPOVERLAPPED_ENTRY lpCompletionPortEntries,
  ULONG              ulCount,
  PULONG             ulNumEntriesRemoved,
  DWORD              dwMilliseconds,
  BOOL               fAlertable
);

Implementation

int GetQueuedCompletionStatusEx(
        int CompletionPort,
        Pointer<OVERLAPPED_ENTRY> lpCompletionPortEntries,
        int ulCount,
        Pointer<Uint32> ulNumEntriesRemoved,
        int dwMilliseconds,
        int fAlertable) =>
    _GetQueuedCompletionStatusEx(CompletionPort, lpCompletionPortEntries,
        ulCount, ulNumEntriesRemoved, dwMilliseconds, fAlertable);