Changeset 7549 for trunk/src/kernel32/hmnul.cpp
- Timestamp:
- Dec 5, 2001, 3:16:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmnul.cpp
r7476 r7549 1 /* $Id: hmnul.cpp,v 1. 1 2001-11-29 00:20:48 phallerExp $ */1 /* $Id: hmnul.cpp,v 1.2 2001-12-05 14:16:02 sandervl Exp $ */ 2 2 3 3 /* … … 60 60 } 61 61 62 DWORD HMDeviceNulClass::CreateFile(HANDLE hHandle, 63 LPCSTR lpFileName, 64 PHMHANDLEDATA pHMHandleData, 65 PVOID lpSecurityAttributes, 66 PHMHANDLEDATA pHMHandleDataTemplate) 62 DWORD HMDeviceNulClass::CreateFile(LPCSTR lpFileName, 63 PHMHANDLEDATA pHMHandleData, 64 PVOID lpSecurityAttributes, 65 PHMHANDLEDATA pHMHandleDataTemplate) 67 66 { 68 67 dprintf(("HMDeviceNulClass::CreateFile(%s,%08xh,%08xh,%08xh)\n", … … 107 106 108 107 BOOL HMDeviceNulClass::WriteFile(PHMHANDLEDATA pHMHandleData, 109 LPCVOID lpBuffer, 110 DWORD nNumberOfBytesToWrite, 111 LPDWORD lpNumberOfBytesWritten, 112 LPOVERLAPPED lpOverlapped) 108 LPCVOID lpBuffer, 109 DWORD nNumberOfBytesToWrite, 110 LPDWORD lpNumberOfBytesWritten, 111 LPOVERLAPPED lpOverlapped, 112 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 113 113 { 114 114 dprintf(("KERNEL32:HMDeviceNulClass::WriteFile %s(%08x,%08x,%08x,%08x,%08x)", … … 146 146 } 147 147 148 /*****************************************************************************149 * Name : BOOL WriteFileEx150 * Purpose : The WriteFileEx function writes data to a file. It is designed151 * solely for asynchronous operation, unlike WriteFile, which is152 * designed for both synchronous and asynchronous operation.153 * WriteFileEx reports its completion status asynchronously,154 * calling a specified completion routine when writing is completed155 * and the calling thread is in an alertable wait state.156 * Parameters: HANDLE hFile handle of file to write157 * LPVOID lpBuffer address of buffer158 * DWORD nNumberOfBytesToRead number of bytes to write159 * LPOVERLAPPED lpOverlapped address of offset160 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine161 * Variables :162 * Result : TRUE / FALSE163 * Remark :164 * Status : UNTESTED STUB165 *166 * Author : Patrick Haller [Mon, 1998/06/15 08:00]167 *****************************************************************************/168 169 BOOL HMDeviceNulClass::WriteFileEx(PHMHANDLEDATA pHMHandleData,170 LPVOID lpBuffer,171 DWORD nNumberOfBytesToWrite,172 LPOVERLAPPED lpOverlapped,173 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)174 {175 dprintf(("ERROR: WriteFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",176 lpHMDeviceName,177 pHMHandleData->hHMHandle,178 lpBuffer,179 nNumberOfBytesToWrite,180 lpOverlapped,181 lpCompletionRoutine));182 183 SetLastError(ERROR_INVALID_FUNCTION);184 return FALSE;185 }186 148 187 149 /***************************************************************************** … … 202 164 203 165 BOOL HMDeviceNulClass::ReadFile(PHMHANDLEDATA pHMHandleData, 204 LPCVOID lpBuffer, 205 DWORD nNumberOfBytesToRead, 206 LPDWORD lpNumberOfBytesRead, 207 LPOVERLAPPED lpOverlapped) 166 LPCVOID lpBuffer, 167 DWORD nNumberOfBytesToRead, 168 LPDWORD lpNumberOfBytesRead, 169 LPOVERLAPPED lpOverlapped, 170 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine) 208 171 { 209 172 dprintf(("KERNEL32:HMDeviceNulClass::ReadFile %s(%08x,%08x,%08x,%08x,%08x)", … … 238 201 } 239 202 return ret; 240 }241 242 /*****************************************************************************243 * Name : BOOL ReadFileEx244 * Purpose : The ReadFileEx function reads data from a file asynchronously.245 * It is designed solely for asynchronous operation, unlike the246 * ReadFile function, which is designed for both synchronous and247 * asynchronous operation. ReadFileEx lets an application perform248 * other processing during a file read operation.249 * The ReadFileEx function reports its completion status asynchronously,250 * calling a specified completion routine when reading is completed251 * and the calling thread is in an alertable wait state.252 * Parameters: HANDLE hFile handle of file to read253 * LPVOID lpBuffer address of buffer254 * DWORD nNumberOfBytesToRead number of bytes to read255 * LPOVERLAPPED lpOverlapped address of offset256 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine257 * Variables :258 * Result : TRUE / FALSE259 * Remark :260 * Status : UNTESTED STUB261 *262 * Author : Patrick Haller [Mon, 1998/06/15 08:00]263 *****************************************************************************/264 BOOL HMDeviceNulClass::ReadFileEx(PHMHANDLEDATA pHMHandleData,265 LPVOID lpBuffer,266 DWORD nNumberOfBytesToRead,267 LPOVERLAPPED lpOverlapped,268 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)269 {270 dprintf(("ERROR: ReadFileEx %s (%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",271 lpHMDeviceName,272 pHMHandleData->hHMHandle,273 lpBuffer,274 nNumberOfBytesToRead,275 lpOverlapped,276 lpCompletionRoutine));277 278 SetLastError(ERROR_INVALID_FUNCTION);279 return FALSE;280 203 } 281 204
Note:
See TracChangeset
for help on using the changeset viewer.