Changeset 7549 for trunk/src/kernel32/hmdisk.cpp
- Timestamp:
- Dec 5, 2001, 3:16:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmdisk.cpp
r7494 r7549 1 /* $Id: hmdisk.cpp,v 1.3 3 2001-11-29 19:58:09sandervl Exp $ */1 /* $Id: hmdisk.cpp,v 1.34 2001-12-05 14:16:00 sandervl Exp $ */ 2 2 3 3 /* … … 101 101 //TODO: PHYSICALDRIVEn!! 102 102 //****************************************************************************** 103 DWORD HMDeviceDiskClass::CreateFile (HANDLE hHandle, 104 LPCSTR lpFileName, 103 DWORD HMDeviceDiskClass::CreateFile (LPCSTR lpFileName, 105 104 PHMHANDLEDATA pHMHandleData, 106 105 PVOID lpSecurityAttributes, … … 1184 1183 DWORD nNumberOfBytesToRead, 1185 1184 LPDWORD lpNumberOfBytesRead, 1186 LPOVERLAPPED lpOverlapped) 1185 LPOVERLAPPED lpOverlapped, 1186 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 1187 1187 { 1188 1188 LPVOID lpRealBuf; … … 1309 1309 return ret; 1310 1310 } 1311 /*****************************************************************************1312 * Name : BOOL ReadFileEx1313 * Purpose : The ReadFileEx function reads data from a file asynchronously.1314 * It is designed solely for asynchronous operation, unlike the1315 * ReadFile function, which is designed for both synchronous and1316 * asynchronous operation. ReadFileEx lets an application perform1317 * 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 completed1320 * and the calling thread is in an alertable wait state.1321 * Parameters: HANDLE hFile handle of file to read1322 * LPVOID lpBuffer address of buffer1323 * DWORD nNumberOfBytesToRead number of bytes to read1324 * LPOVERLAPPED lpOverlapped address of offset1325 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine1326 * Variables :1327 * Result : TRUE / FALSE1328 * Remark :1329 * Status : UNTESTED STUB1330 *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 1348 1311 1349 1312 /***************************************************************************** … … 1367 1330 DWORD nNumberOfBytesToWrite, 1368 1331 LPDWORD lpNumberOfBytesWritten, 1369 LPOVERLAPPED lpOverlapped) 1332 LPOVERLAPPED lpOverlapped, 1333 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 1370 1334 { 1371 1335 LPVOID lpRealBuf; … … 1456 1420 } 1457 1421 1458 /*****************************************************************************1459 * Name : BOOL WriteFileEx1460 * Purpose : The WriteFileEx function writes data to a file. It is designed1461 * solely for asynchronous operation, unlike WriteFile, which is1462 * designed for both synchronous and asynchronous operation.1463 * WriteFileEx reports its completion status asynchronously,1464 * calling a specified completion routine when writing is completed1465 * and the calling thread is in an alertable wait state.1466 * Parameters: HANDLE hFile handle of file to write1467 * LPVOID lpBuffer address of buffer1468 * DWORD nNumberOfBytesToRead number of bytes to write1469 * LPOVERLAPPED lpOverlapped address of offset1470 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine1471 * Variables :1472 * Result : TRUE / FALSE1473 * Remark :1474 * Status : UNTESTED STUB1475 *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 }1493 1422 1494 1423 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.