Changeset 7549 for trunk/src/kernel32/hmdevice.cpp
- Timestamp:
- Dec 5, 2001, 3:16:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmdevice.cpp
r7532 r7549 1 /* $Id: hmdevice.cpp,v 1.3 0 2001-12-03 12:13:08sandervl Exp $ */1 /* $Id: hmdevice.cpp,v 1.31 2001-12-05 14:15:59 sandervl Exp $ */ 2 2 3 3 /* … … 169 169 *****************************************************************************/ 170 170 171 DWORD HMDeviceHandler::CreateFile (HANDLE hHandle, 172 LPCSTR lpFileName, 171 DWORD HMDeviceHandler::CreateFile (LPCSTR lpFileName, 173 172 PHMHANDLEDATA pHMHandleData, 174 173 PVOID lpSecurityAttributes, … … 217 216 * LPDWORD lpNumberOfBytesRead, 218 217 * LPOVERLAPPED lpOverlapped 218 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine 219 219 * Variables : 220 220 * Result : Boolean … … 229 229 DWORD nNumberOfBytesToRead, 230 230 LPDWORD lpNumberOfBytesRead, 231 LPOVERLAPPED lpOverlapped) 232 { 233 dprintf(("KERNEL32:HandleManager::ReadFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n", 231 LPOVERLAPPED lpOverlapped, 232 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 233 { 234 dprintf(("KERNEL32:HandleManager::ReadFile %s(%08x,%08x,%08x,%08x,%08x %08x) - stub?\n", 234 235 lpHMDeviceName, 235 236 pHMHandleData->hHMHandle, … … 237 238 nNumberOfBytesToRead, 238 239 lpNumberOfBytesRead, 239 lpOverlapped ));240 lpOverlapped, lpCompletionRoutine)); 240 241 241 242 SetLastError(ERROR_INVALID_FUNCTION); … … 243 244 } 244 245 245 /*****************************************************************************246 * Name : BOOL ReadFileEx247 * Purpose : The ReadFileEx function reads data from a file asynchronously.248 * It is designed solely for asynchronous operation, unlike the249 * ReadFile function, which is designed for both synchronous and250 * asynchronous operation. ReadFileEx lets an application perform251 * other processing during a file read operation.252 * The ReadFileEx function reports its completion status asynchronously,253 * calling a specified completion routine when reading is completed254 * and the calling thread is in an alertable wait state.255 * Parameters: HANDLE hFile handle of file to read256 * LPVOID lpBuffer address of buffer257 * DWORD nNumberOfBytesToRead number of bytes to read258 * LPOVERLAPPED lpOverlapped address of offset259 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine260 * Variables :261 * Result : TRUE / FALSE262 * Remark :263 * Status : UNTESTED STUB264 *265 * Author : Patrick Haller [Mon, 1998/06/15 08:00]266 *****************************************************************************/267 BOOL HMDeviceHandler::ReadFileEx(PHMHANDLEDATA pHMHandleData,268 LPVOID lpBuffer,269 DWORD nNumberOfBytesToRead,270 LPOVERLAPPED lpOverlapped,271 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)272 {273 dprintf(("ERROR: ReadFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",274 lpHMDeviceName,275 pHMHandleData->hHMHandle,276 lpBuffer,277 nNumberOfBytesToRead,278 lpOverlapped,279 lpCompletionRoutine));280 281 SetLastError(ERROR_INVALID_FUNCTION);282 return FALSE;283 }284 246 285 247 /***************************************************************************** … … 291 253 * LPDWORD lpNumberOfBytesWritten, 292 254 * LPOVERLAPPED lpOverlapped 255 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine 293 256 * Variables : 294 257 * Result : Boolean … … 303 266 DWORD nNumberOfBytesToWrite, 304 267 LPDWORD lpNumberOfBytesWritten, 305 LPOVERLAPPED lpOverlapped) 306 { 307 dprintf(("KERNEL32:HandleManager::WriteFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n", 268 LPOVERLAPPED lpOverlapped, 269 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 270 { 271 dprintf(("KERNEL32:HandleManager::WriteFile %s(%08x,%08x,%08x,%08x,%08x,%08x) - stub?\n", 308 272 lpHMDeviceName, 309 273 pHMHandleData->hHMHandle, … … 311 275 nNumberOfBytesToWrite, 312 276 lpNumberOfBytesWritten, 313 lpOverlapped)); 314 315 SetLastError(ERROR_INVALID_FUNCTION); 316 return FALSE; 317 } 318 319 320 /***************************************************************************** 321 * Name : BOOL WriteFileEx 322 * Purpose : The WriteFileEx function writes data to a file. It is designed 323 * solely for asynchronous operation, unlike WriteFile, which is 324 * designed for both synchronous and asynchronous operation. 325 * WriteFileEx reports its completion status asynchronously, 326 * calling a specified completion routine when writing is completed 327 * and the calling thread is in an alertable wait state. 328 * Parameters: HANDLE hFile handle of file to write 329 * LPVOID lpBuffer address of buffer 330 * DWORD nNumberOfBytesToRead number of bytes to write 331 * LPOVERLAPPED lpOverlapped address of offset 332 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine 333 * Variables : 334 * Result : TRUE / FALSE 335 * Remark : 336 * Status : UNTESTED STUB 337 * 338 * Author : Patrick Haller [Mon, 1998/06/15 08:00] 339 *****************************************************************************/ 340 341 BOOL HMDeviceHandler::WriteFileEx(PHMHANDLEDATA pHMHandleData, 342 LPVOID lpBuffer, 343 DWORD nNumberOfBytesToWrite, 344 LPOVERLAPPED lpOverlapped, 345 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 346 { 347 dprintf(("ERROR: WriteFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n", 348 lpHMDeviceName, 349 pHMHandleData->hHMHandle, 350 lpBuffer, 351 nNumberOfBytesToWrite, 352 lpOverlapped, 353 lpCompletionRoutine)); 277 lpOverlapped, lpCompletionRoutine)); 354 278 355 279 SetLastError(ERROR_INVALID_FUNCTION); … … 375 299 pHMHandleData)); 376 300 377 return pHMHandleData->dwType;301 return FILE_TYPE_UNKNOWN; 378 302 } 379 303 … … 627 551 *****************************************************************************/ 628 552 629 DWORD HMDeviceHandler::OpenFile (HANDLE hHandle, 630 LPCSTR lpFileName, 553 DWORD HMDeviceHandler::OpenFile (LPCSTR lpFileName, 631 554 PHMHANDLEDATA pHMHandleData, 632 555 OFSTRUCT *pOFStruct,
Note:
See TracChangeset
for help on using the changeset viewer.