Changeset 3642 for trunk/src/kernel32/hmdevice.cpp
- Timestamp:
- Jun 1, 2000, 1:28:48 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmdevice.cpp
r3588 r3642 1 /* $Id: hmdevice.cpp,v 1. 19 2000-05-22 19:07:54sandervl Exp $ */1 /* $Id: hmdevice.cpp,v 1.20 2000-06-01 11:28:45 sandervl Exp $ */ 2 2 3 3 /* … … 126 126 srcprocess, pHMSrcHandle, destprocess, desthandle)); 127 127 128 return (ERROR_INVALID_FUNCTION);128 return FALSE; 129 129 } 130 130 … … 208 208 dprintf(("KERNEL32:HandleManager::ReadFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n", 209 209 lpHMDeviceName, 210 pHMHandleData ,210 pHMHandleData->hHMHandle, 211 211 lpBuffer, 212 212 nNumberOfBytesToRead, … … 218 218 } 219 219 220 /***************************************************************************** 221 * Name : BOOL ReadFileEx 222 * Purpose : The ReadFileEx function reads data from a file asynchronously. 223 * It is designed solely for asynchronous operation, unlike the 224 * ReadFile function, which is designed for both synchronous and 225 * asynchronous operation. ReadFileEx lets an application perform 226 * other processing during a file read operation. 227 * The ReadFileEx function reports its completion status asynchronously, 228 * calling a specified completion routine when reading is completed 229 * and the calling thread is in an alertable wait state. 230 * Parameters: HANDLE hFile handle of file to read 231 * LPVOID lpBuffer address of buffer 232 * DWORD nNumberOfBytesToRead number of bytes to read 233 * LPOVERLAPPED lpOverlapped address of offset 234 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine 235 * Variables : 236 * Result : TRUE / FALSE 237 * Remark : 238 * Status : UNTESTED STUB 239 * 240 * Author : Patrick Haller [Mon, 1998/06/15 08:00] 241 *****************************************************************************/ 242 BOOL HMDeviceHandler::ReadFileEx(PHMHANDLEDATA pHMHandleData, 243 LPVOID lpBuffer, 244 DWORD nNumberOfBytesToRead, 245 LPOVERLAPPED lpOverlapped, 246 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 247 { 248 dprintf(("ERROR: ReadFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n", 249 lpHMDeviceName, 250 pHMHandleData->hHMHandle, 251 lpBuffer, 252 nNumberOfBytesToRead, 253 lpOverlapped, 254 lpCompletionRoutine)); 255 256 SetLastError(ERROR_INVALID_FUNCTION); 257 return FALSE; 258 } 220 259 221 260 /***************************************************************************** … … 243 282 dprintf(("KERNEL32:HandleManager::WriteFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n", 244 283 lpHMDeviceName, 245 pHMHandleData ,284 pHMHandleData->hHMHandle, 246 285 lpBuffer, 247 286 nNumberOfBytesToWrite, … … 253 292 } 254 293 294 295 /***************************************************************************** 296 * Name : BOOL WriteFileEx 297 * Purpose : The WriteFileEx function writes data to a file. It is designed 298 * solely for asynchronous operation, unlike WriteFile, which is 299 * designed for both synchronous and asynchronous operation. 300 * WriteFileEx reports its completion status asynchronously, 301 * calling a specified completion routine when writing is completed 302 * and the calling thread is in an alertable wait state. 303 * Parameters: HANDLE hFile handle of file to write 304 * LPVOID lpBuffer address of buffer 305 * DWORD nNumberOfBytesToRead number of bytes to write 306 * LPOVERLAPPED lpOverlapped address of offset 307 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine 308 * Variables : 309 * Result : TRUE / FALSE 310 * Remark : 311 * Status : UNTESTED STUB 312 * 313 * Author : Patrick Haller [Mon, 1998/06/15 08:00] 314 *****************************************************************************/ 315 316 BOOL HMDeviceHandler::WriteFileEx(PHMHANDLEDATA pHMHandleData, 317 LPVOID lpBuffer, 318 DWORD nNumberOfBytesToWrite, 319 LPOVERLAPPED lpOverlapped, 320 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 321 { 322 dprintf(("ERROR: WriteFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n", 323 lpHMDeviceName, 324 pHMHandleData->hHMHandle, 325 lpBuffer, 326 nNumberOfBytesToWrite, 327 lpOverlapped, 328 lpCompletionRoutine)); 329 330 SetLastError(ERROR_INVALID_FUNCTION); 331 return FALSE; 332 } 255 333 256 334 /***************************************************************************** … … 579 657 * Purpose : file locking 580 658 * Parameters: PHMHANDLEDATA pHMHandleData 581 * DWORD dwFlags582 659 * DWORD dwReserved 583 660 * DWORD nNumberOfBytesToLockLow … … 593 670 594 671 DWORD HMDeviceHandler::UnlockFileEx(PHMHANDLEDATA pHMHandleData, 595 DWORD dwFlags,596 672 DWORD dwReserved, 597 673 DWORD nNumberOfBytesToLockLow, … … 599 675 LPOVERLAPPED lpOverlapped) 600 676 { 601 dprintf(("KERNEL32: HandleManager::DeviceHandler::UnlockFileEx %s(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n", 602 lpHMDeviceName, 603 pHMHandleData, 604 dwFlags, 677 dprintf(("KERNEL32: HandleManager::DeviceHandler::UnlockFileEx %s,%08xh,%08xh,%08xh,%08xh,%08xh)\n", 678 lpHMDeviceName, 679 pHMHandleData, 605 680 dwReserved, 606 681 nNumberOfBytesToLockLow,
Note:
See TracChangeset
for help on using the changeset viewer.