CancelIoEx function kernel32
Marks any outstanding I/O operations for the specified file handle.
The function only cancels I/O operations in the current process, regardless of which thread created the I/O operation.
To learn more, see learn.microsoft.com/windows/win32/api/ioapiset/nf-ioapiset-cancelioex.
Implementation
Win32Result<bool> CancelIoEx(HANDLE hFile, Pointer<OVERLAPPED>? lpOverlapped) {
final result_ = CancelIoEx_Wrapper(hFile, lpOverlapped ?? nullptr);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}