CancelIo function Null safety kernel32

int CancelIo(
  1. int hFile
)

Cancels all pending input and output (I/O) operations that are issued by the calling thread for the specified file. The function does not cancel I/O operations that other threads issue for a file handle.

BOOL CancelIo(
  HANDLE hFile
);

Implementation

int CancelIo(int hFile) => _CancelIo(hFile);