Changeset 3642 for trunk/src/kernel32/async.cpp
- Timestamp:
- Jun 1, 2000, 1:28:48 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/async.cpp
r2802 r3642 1 /* $Id: async.cpp,v 1. 7 2000-02-16 14:25:30sandervl Exp $ */1 /* $Id: async.cpp,v 1.8 2000-06-01 11:28:44 sandervl Exp $ */ 2 2 3 3 /* … … 114 114 } 115 115 116 117 /*****************************************************************************118 * Name : BOOL ReadFileEx119 * Purpose : The ReadFileEx function reads data from a file asynchronously.120 * It is designed solely for asynchronous operation, unlike the121 * ReadFile function, which is designed for both synchronous and122 * asynchronous operation. ReadFileEx lets an application perform123 * other processing during a file read operation.124 * The ReadFileEx function reports its completion status asynchronously,125 * calling a specified completion routine when reading is completed126 * and the calling thread is in an alertable wait state.127 * Parameters: HANDLE hFile handle of file to read128 * LPVOID lpBuffer address of buffer129 * DWORD nNumberOfBytesToRead number of bytes to read130 * LPOVERLAPPED lpOverlapped address of offset131 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine132 * Variables :133 * Result : TRUE / FALSE134 * Remark :135 * Status : UNTESTED STUB136 *137 * Author : Patrick Haller [Mon, 1998/06/15 08:00]138 *****************************************************************************/139 140 #define LPOVERLAPPED_COMPLETION_ROUTINE LPVOID141 142 DWORD WIN32API ReadFileEx(HANDLE hFile,143 LPVOID lpBuffer,144 DWORD nNumberOfBytesToRead,145 LPOVERLAPPED lpOverlapped,146 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)147 {148 dprintf(("Kernel32: ReadFileEx(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",149 hFile,150 lpBuffer,151 nNumberOfBytesToRead,152 lpOverlapped,153 lpCompletionRoutine));154 155 156 return (FALSE);157 }158 159 160 /*****************************************************************************161 * Name : BOOL WriteFileEx162 * Purpose : The WriteFileEx function writes data to a file. It is designed163 * solely for asynchronous operation, unlike WriteFile, which is164 * designed for both synchronous and asynchronous operation.165 * WriteFileEx reports its completion status asynchronously,166 * calling a specified completion routine when writing is completed167 * and the calling thread is in an alertable wait state.168 * Parameters: HANDLE hFile handle of file to write169 * LPVOID lpBuffer address of buffer170 * DWORD nNumberOfBytesToRead number of bytes to write171 * LPOVERLAPPED lpOverlapped address of offset172 * LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine173 * Variables :174 * Result : TRUE / FALSE175 * Remark :176 * Status : UNTESTED STUB177 *178 * Author : Patrick Haller [Mon, 1998/06/15 08:00]179 *****************************************************************************/180 181 DWORD WIN32API WriteFileEx(HANDLE hFile,182 LPVOID lpBuffer,183 DWORD nNumberOfBytesToWrite,184 LPOVERLAPPED lpOverlapped,185 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)186 {187 dprintf(("Kernel32: WriteFileEx(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented.\n",188 hFile,189 lpBuffer,190 nNumberOfBytesToWrite,191 lpOverlapped,192 lpCompletionRoutine));193 194 195 return (FALSE);196 }197 198 199 116 #endif /* _ASYNCIOSUBSYSTEM_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.