Changeset 7549 for trunk/src/kernel32/hmparport.cpp
- Timestamp:
- Dec 5, 2001, 3:16:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmparport.cpp
r7542 r7549 1 /* $Id: hmparport.cpp,v 1.1 5 2001-12-04 12:56:52 phallerExp $ */1 /* $Id: hmparport.cpp,v 1.16 2001-12-05 14:16:04 sandervl Exp $ */ 2 2 3 3 /* … … 232 232 } 233 233 234 DWORD HMDeviceParPortClass::CreateFile(HANDLE hHandle, 235 LPCSTR lpFileName, 234 DWORD HMDeviceParPortClass::CreateFile(LPCSTR lpFileName, 236 235 PHMHANDLEDATA pHMHandleData, 237 236 PVOID lpSecurityAttributes, … … 331 330 DWORD nNumberOfBytesToWrite, 332 331 LPDWORD lpNumberOfBytesWritten, 333 LPOVERLAPPED lpOverlapped) 332 LPOVERLAPPED lpOverlapped, 333 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 334 334 { 335 335 dprintf(("KERNEL32:HMDeviceParPortClass::WriteFile %s(%08x,%08x,%08x,%08x,%08x)", … … 364 364 365 365 return ret; 366 }367 368 /*****************************************************************************369 * Name : BOOL WriteFileEx370 * Purpose : The WriteFileEx function writes data to a file. It is designed371 * solely for asynchronous operation, unlike WriteFile, which is372 * designed for both synchronous and asynchronous operation.373 * WriteFileEx reports its completion status asynchronously,374 * calling a specified completion routine when writing is completed375 * and the calling thread is in an alertable wait state.376 * Parameters: HANDLE hFile handle of file to write377 * LPVOID lpBuffer address of buffer378 * DWORD nNumberOfBytesToRead number of bytes to write379 * LPOVERLAPPED lpOverlapped address of offset380 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine381 * Variables :382 * Result : TRUE / FALSE383 * Remark :384 * Status : UNTESTED STUB385 *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;405 366 } 406 367 … … 425 386 DWORD nNumberOfBytesToRead, 426 387 LPDWORD lpNumberOfBytesRead, 427 LPOVERLAPPED lpOverlapped) 388 LPOVERLAPPED lpOverlapped, 389 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 428 390 { 429 391 dprintf(("KERNEL32:HMDeviceParPortClass::ReadFile %s(%08x,%08x,%08x,%08x,%08x)", … … 457 419 } 458 420 return ret; 459 }460 461 /*****************************************************************************462 * Name : BOOL ReadFileEx463 * Purpose : The ReadFileEx function reads data from a file asynchronously.464 * It is designed solely for asynchronous operation, unlike the465 * ReadFile function, which is designed for both synchronous and466 * asynchronous operation. ReadFileEx lets an application perform467 * 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 completed470 * and the calling thread is in an alertable wait state.471 * Parameters: HANDLE hFile handle of file to read472 * LPVOID lpBuffer address of buffer473 * DWORD nNumberOfBytesToRead number of bytes to read474 * LPOVERLAPPED lpOverlapped address of offset475 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine476 * Variables :477 * Result : TRUE / FALSE478 * Remark :479 * Status : UNTESTED STUB480 *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;499 421 } 500 422
Note:
See TracChangeset
for help on using the changeset viewer.