internal static extern bool CancelIoEx(IntPtr hFile, IntPtr lpOverlapped);
public void CancelIO() { if (IsOpen) { NativeMethods.CancelIoEx(safeReadHandle.DangerousGetHandle(), IntPtr.Zero); } }