ClearCommError function Null safety kernel32

int ClearCommError(
  1. int hFile,
  2. Pointer<Uint32> lpErrors,
  3. Pointer<COMSTAT> lpStat

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,


int ClearCommError(
        int hFile, Pointer<Uint32> lpErrors, Pointer<COMSTAT> lpStat) =>
    _ClearCommError(hFile, lpErrors, lpStat);