PurgeComm function Null safety kernel32

int PurgeComm(
  1. int hFile,
  2. int dwFlags

Discards all characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource.

BOOL PurgeComm(
  HANDLE hFile,
  DWORD  dwFlags


int PurgeComm(int hFile, int dwFlags) => _PurgeComm(hFile, dwFlags);