INFO: Canceling Overlapped I/OLast reviewed: April 10, 1997Article ID: Q90368 |
The information in this article applies to:
SUMMARYYou can use the CancelIo() API function to cancel overlapped I/O. This function is available on Microsoft Windows NT 4.0. Previous versions of Windows NT and Windows 95 do not have CancelIo(), but there are alternative methods to cancel an asychronous I/O operation.
MORE INFORMATIONWindows NT 4.0 introduces a new API function to cancel overlapped I/O. Please see the Win32 SDK Function Reference for CancelIo() for more information. Prior to Windows NT 4.0, and with Windows 95, there is no routine in the Win32 API to cancel an asynchronous request once it has been issued. When a thread does an overlapped I/O, the system starts up another thread to do the I/O and leaves your thread free to do other work. Once it is started, there is no way to stop it. If it necessary to interrupt the I/O, you can either:
|
Keywords : BseFileio kbprg kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |