WaitCommEvent function kernel32

int WaitCommEvent(
  1. int hFile,
  2. Pointer<Uint32> lpEvtMask,
  3. Pointer<OVERLAPPED> lpOverlapped
)

Waits for an event to occur for a specified communications device. The set of events that are monitored by this function is contained in the event mask associated with the device handle.

BOOL WaitCommEvent(
  HANDLE       hFile,
  LPDWORD      lpEvtMask,
  LPOVERLAPPED lpOverlapped
);

Implementation

int WaitCommEvent(int hFile, Pointer<Uint32> lpEvtMask,
        Pointer<OVERLAPPED> lpOverlapped) =>
    _WaitCommEvent(hFile, lpEvtMask, lpOverlapped);