CancelIo function kernel32
Cancels all pending input and output (I/O) operations that are issued by the calling thread for the specified file.
To learn more, see learn.microsoft.com/windows/win32/api/ioapiset/nf-ioapiset-cancelio.
Implementation
Win32Result<bool> CancelIo(HANDLE hFile) {
resolveGetLastError();
final result_ = _CancelIo(hFile);
return .new(value: result_ != FALSE, error: GetLastError());
}