Ignore:
Timestamp:
Dec 5, 2001, 3:16:38 PM (24 years ago)
Author:
sandervl
Message:

preliminary changes for new overlapped io framework

File:
1 edited

Legend:

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

    r7542 r7549  
    1 /* $Id: hmparport.cpp,v 1.15 2001-12-04 12:56:52 phaller Exp $ */
     1/* $Id: hmparport.cpp,v 1.16 2001-12-05 14:16:04 sandervl Exp $ */
    22
    33/*
     
    232232}
    233233
    234 DWORD HMDeviceParPortClass::CreateFile(HANDLE        hHandle,
    235                                        LPCSTR lpFileName,
     234DWORD HMDeviceParPortClass::CreateFile(LPCSTR lpFileName,
    236235                                       PHMHANDLEDATA pHMHandleData,
    237236                                       PVOID lpSecurityAttributes,
     
    331330                                     DWORD         nNumberOfBytesToWrite,
    332331                                     LPDWORD       lpNumberOfBytesWritten,
    333                                      LPOVERLAPPED  lpOverlapped)
     332                                     LPOVERLAPPED  lpOverlapped,
     333                                     LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    334334{
    335335  dprintf(("KERNEL32:HMDeviceParPortClass::WriteFile %s(%08x,%08x,%08x,%08x,%08x)",
     
    364364
    365365  return ret;
    366 }
    367 
    368 /*****************************************************************************
    369  * Name      : BOOL WriteFileEx
    370  * Purpose   : The WriteFileEx function writes data to a file. It is designed
    371  *             solely for asynchronous operation, unlike WriteFile, which is
    372  *             designed for both synchronous and asynchronous operation.
    373  *             WriteFileEx reports its completion status asynchronously,
    374  *             calling a specified completion routine when writing is completed
    375  *             and the calling thread is in an alertable wait state.
    376  * Parameters: HANDLE       hFile                handle of file to write
    377  *             LPVOID       lpBuffer             address of buffer
    378  *             DWORD        nNumberOfBytesToRead number of bytes to write
    379  *             LPOVERLAPPED lpOverlapped         address of offset
    380  *             LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine
    381  * Variables :
    382  * Result    : TRUE / FALSE
    383  * Remark    :
    384  * Status    : UNTESTED STUB
    385  *
    386  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    387  *****************************************************************************/
    388 
    389 BOOL HMDeviceParPortClass::WriteFileEx(PHMHANDLEDATA pHMHandleData,
    390                                        LPVOID       lpBuffer,
    391                                        DWORD        nNumberOfBytesToWrite,
    392                                        LPOVERLAPPED lpOverlapped,
    393                                        LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    394 {
    395   dprintf(("ERROR: WriteFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    396            lpHMDeviceName,
    397            pHMHandleData->hHMHandle,
    398            lpBuffer,
    399            nNumberOfBytesToWrite,
    400            lpOverlapped,
    401            lpCompletionRoutine));
    402 
    403   SetLastError(ERROR_INVALID_FUNCTION);
    404   return FALSE;
    405366}
    406367
     
    425386                                    DWORD         nNumberOfBytesToRead,
    426387                                    LPDWORD       lpNumberOfBytesRead,
    427                                     LPOVERLAPPED  lpOverlapped)
     388                                    LPOVERLAPPED  lpOverlapped,
     389                                    LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    428390{
    429391  dprintf(("KERNEL32:HMDeviceParPortClass::ReadFile %s(%08x,%08x,%08x,%08x,%08x)",
     
    457419  }
    458420  return ret;
    459 }
    460 
    461 /*****************************************************************************
    462  * Name      : BOOL ReadFileEx
    463  * Purpose   : The ReadFileEx function reads data from a file asynchronously.
    464  *             It is designed solely for asynchronous operation, unlike the
    465  *             ReadFile function, which is designed for both synchronous and
    466  *             asynchronous operation. ReadFileEx lets an application perform
    467  *             other processing during a file read operation.
    468  *             The ReadFileEx function reports its completion status asynchronously,
    469  *             calling a specified completion routine when reading is completed
    470  *             and the calling thread is in an alertable wait state.
    471  * Parameters: HANDLE       hFile                handle of file to read
    472  *             LPVOID       lpBuffer             address of buffer
    473  *             DWORD        nNumberOfBytesToRead number of bytes to read
    474  *             LPOVERLAPPED lpOverlapped         address of offset
    475  *             LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine
    476  * Variables :
    477  * Result    : TRUE / FALSE
    478  * Remark    :
    479  * Status    : UNTESTED STUB
    480  *
    481  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    482  *****************************************************************************/
    483 BOOL HMDeviceParPortClass::ReadFileEx(PHMHANDLEDATA pHMHandleData,
    484                            LPVOID       lpBuffer,
    485                            DWORD        nNumberOfBytesToRead,
    486                            LPOVERLAPPED lpOverlapped,
    487                            LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    488 {
    489   dprintf(("ERROR: ReadFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    490            lpHMDeviceName,
    491            pHMHandleData->hHMHandle,
    492            lpBuffer,
    493            nNumberOfBytesToRead,
    494            lpOverlapped,
    495            lpCompletionRoutine));
    496 
    497   SetLastError(ERROR_INVALID_FUNCTION);
    498   return FALSE;
    499421}
    500422
Note: See TracChangeset for help on using the changeset viewer.