GetOverlappedResultEx function Null safety kernel32

int GetOverlappedResultEx(
  1. int hFile,
  2. Pointer<OVERLAPPED> lpOverlapped,
  3. Pointer<Uint32> lpNumberOfBytesTransferred,
  4. int dwMilliseconds,
  5. int bAlertable
)

Retrieves the results of an overlapped operation on the specified file, named pipe, or communications device within the specified time-out interval. The calling thread can perform an alertable wait.

BOOL GetOverlappedResultEx(
  HANDLE       hFile,
  LPOVERLAPPED lpOverlapped,
  LPDWORD      lpNumberOfBytesTransferred,
  DWORD        dwMilliseconds,
  BOOL         bAlertable
);

Implementation

int GetOverlappedResultEx(
        int hFile,
        Pointer<OVERLAPPED> lpOverlapped,
        Pointer<Uint32> lpNumberOfBytesTransferred,
        int dwMilliseconds,
        int bAlertable) =>
    _GetOverlappedResultEx(hFile, lpOverlapped, lpNumberOfBytesTransferred,
        dwMilliseconds, bAlertable);