WaitCommEvent function kernel32
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);