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