ClearCommError function kernel32
Retrieves information about a communications error and reports the current status of a communications device. The function is called when a communications error occurs, and it clears the device's error flag to enable additional input and output (I/O) operations.
BOOL ClearCommError(
HANDLE hFile,
LPDWORD lpErrors,
LPCOMSTAT lpStat
);
Implementation
int ClearCommError(
int hFile, Pointer<Uint32> lpErrors, Pointer<COMSTAT> lpStat) =>
_ClearCommError(hFile, lpErrors, lpStat);