Ignore:
Timestamp:
Nov 26, 2001, 3:54:03 PM (24 years ago)
Author:
sandervl
Message:

preliminary work on overlapped serial comm IO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/Fileio.cpp

    r7342 r7457  
    1 /* $Id: Fileio.cpp,v 1.55 2001-11-14 18:39:52 sandervl Exp $ */
     1/* $Id: Fileio.cpp,v 1.56 2001-11-26 14:53:57 sandervl Exp $ */
    22
    33/*
     
    14601460                             lpOutBuffer, nOutBufferSize, lpBytesReturned, lpOverlapped);
    14611461}
    1462 //******************************************************************************
    1463 //******************************************************************************
     1462/*****************************************************************************
     1463 * Name      : BOOL WIN32API CancelIo
     1464 * Purpose   : The CancelIO function cancels all pending input and output
     1465 *             (I/O) operations that were issued by the calling thread for
     1466 *             the specified file handle. The function does not cancel
     1467 *             I/O operations issued for the file handle by other threads.
     1468 * Parameters: HANDLE hFile   file handle for which to cancel I/O
     1469 * Variables :
     1470 * Result    : If the function succeeds, the return value is nonzero All pending
     1471 *             I/O operations issued by the calling thread for the file handle
     1472 *             were successfully canceled.
     1473 *             If the function fails, the return value is zero.
     1474 *             To get extended error information, call GetLastError.
     1475 * Remark    : If there are any I/O operations in progress for the specified
     1476 *             file handle, and they were issued by the calling thread, the
     1477 *             CancelIO function cancels them.
     1478 *             Note that the I/O operations must have been issued as
     1479 *             overlapped I/O. If they were not, the I/O operations would not
     1480 *             have returned to allow the thread to call the CancelIO function.
     1481 *             Calling the CancelIO function with a file handle that was not
     1482 *             opened with FILE_FLAG_OVERLAPPED does nothing.
     1483 *             All I/O operations that are canceled will complete with the
     1484 *             error ERROR_OPERATION_ABORTED. All completion notifications
     1485 *             for the I/O operations will occur normally.
     1486 * Status    : UNTESTED STUB
     1487 *
     1488 * Author    : Markus Montkowski [Thu, 1998/05/19 11:46]
     1489 *****************************************************************************/
     1490ODINFUNCTION1(BOOL, CancelIo, HANDLE, hFile)
     1491{
     1492  return HMCancelIo(hFile);
     1493}
     1494//******************************************************************************
     1495//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.