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/hmdisk.cpp

    r7494 r7549  
    1 /* $Id: hmdisk.cpp,v 1.33 2001-11-29 19:58:09 sandervl Exp $ */
     1/* $Id: hmdisk.cpp,v 1.34 2001-12-05 14:16:00 sandervl Exp $ */
    22
    33/*
     
    101101//TODO: PHYSICALDRIVEn!!
    102102//******************************************************************************
    103 DWORD HMDeviceDiskClass::CreateFile (HANDLE        hHandle,
    104                                      LPCSTR        lpFileName,
     103DWORD HMDeviceDiskClass::CreateFile (LPCSTR        lpFileName,
    105104                                     PHMHANDLEDATA pHMHandleData,
    106105                                     PVOID         lpSecurityAttributes,
     
    11841183                                 DWORD         nNumberOfBytesToRead,
    11851184                                 LPDWORD       lpNumberOfBytesRead,
    1186                                  LPOVERLAPPED  lpOverlapped)
     1185                                 LPOVERLAPPED  lpOverlapped,
     1186                                 LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    11871187{
    11881188  LPVOID       lpRealBuf;
     
    13091309  return ret;
    13101310}
    1311 /*****************************************************************************
    1312  * Name      : BOOL ReadFileEx
    1313  * Purpose   : The ReadFileEx function reads data from a file asynchronously.
    1314  *             It is designed solely for asynchronous operation, unlike the
    1315  *             ReadFile function, which is designed for both synchronous and
    1316  *             asynchronous operation. ReadFileEx lets an application perform
    1317  *             other processing during a file read operation.
    1318  *             The ReadFileEx function reports its completion status asynchronously,
    1319  *             calling a specified completion routine when reading is completed
    1320  *             and the calling thread is in an alertable wait state.
    1321  * Parameters: HANDLE       hFile                handle of file to read
    1322  *             LPVOID       lpBuffer             address of buffer
    1323  *             DWORD        nNumberOfBytesToRead number of bytes to read
    1324  *             LPOVERLAPPED lpOverlapped         address of offset
    1325  *             LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine
    1326  * Variables :
    1327  * Result    : TRUE / FALSE
    1328  * Remark    :
    1329  * Status    : UNTESTED STUB
    1330  *
    1331  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1332  *****************************************************************************/
    1333 BOOL HMDeviceDiskClass::ReadFileEx(PHMHANDLEDATA pHMHandleData,
    1334                            LPVOID       lpBuffer,
    1335                            DWORD        nNumberOfBytesToRead,
    1336                            LPOVERLAPPED lpOverlapped,
    1337                            LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    1338 {
    1339   dprintf(("ERROR: ReadFileEx(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    1340            pHMHandleData->hHMHandle,
    1341            lpBuffer,
    1342            nNumberOfBytesToRead,
    1343            lpOverlapped,
    1344            lpCompletionRoutine));
    1345   return FALSE;
    1346 }
    1347 
    13481311
    13491312/*****************************************************************************
     
    13671330                                    DWORD         nNumberOfBytesToWrite,
    13681331                                    LPDWORD       lpNumberOfBytesWritten,
    1369                                     LPOVERLAPPED  lpOverlapped)
     1332                                    LPOVERLAPPED  lpOverlapped,
     1333                                    LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    13701334{
    13711335  LPVOID       lpRealBuf;
     
    14561420}
    14571421
    1458 /*****************************************************************************
    1459  * Name      : BOOL WriteFileEx
    1460  * Purpose   : The WriteFileEx function writes data to a file. It is designed
    1461  *             solely for asynchronous operation, unlike WriteFile, which is
    1462  *             designed for both synchronous and asynchronous operation.
    1463  *             WriteFileEx reports its completion status asynchronously,
    1464  *             calling a specified completion routine when writing is completed
    1465  *             and the calling thread is in an alertable wait state.
    1466  * Parameters: HANDLE       hFile                handle of file to write
    1467  *             LPVOID       lpBuffer             address of buffer
    1468  *             DWORD        nNumberOfBytesToRead number of bytes to write
    1469  *             LPOVERLAPPED lpOverlapped         address of offset
    1470  *             LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine
    1471  * Variables :
    1472  * Result    : TRUE / FALSE
    1473  * Remark    :
    1474  * Status    : UNTESTED STUB
    1475  *
    1476  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    1477  *****************************************************************************/
    1478 
    1479 BOOL HMDeviceDiskClass::WriteFileEx(PHMHANDLEDATA pHMHandleData,
    1480                            LPVOID       lpBuffer,
    1481                            DWORD        nNumberOfBytesToWrite,
    1482                            LPOVERLAPPED lpOverlapped,
    1483                            LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    1484 {
    1485   dprintf(("ERROR: WriteFileEx(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    1486            pHMHandleData->hHMHandle,
    1487            lpBuffer,
    1488            nNumberOfBytesToWrite,
    1489            lpOverlapped,
    1490            lpCompletionRoutine));
    1491   return FALSE;
    1492 }
    14931422
    14941423/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.