Ignore:
Timestamp:
Jun 1, 2000, 1:28:48 PM (25 years ago)
Author:
sandervl
Message:

Rewrote file io apis

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:30 sandervl Exp $ */
     1/* $Id: async.cpp,v 1.8 2000-06-01 11:28:44 sandervl Exp $ */
    22
    33/*
     
    114114}
    115115
    116 
    117 /*****************************************************************************
    118  * Name      : BOOL ReadFileEx
    119  * Purpose   : The ReadFileEx function reads data from a file asynchronously.
    120  *             It is designed solely for asynchronous operation, unlike the
    121  *             ReadFile function, which is designed for both synchronous and
    122  *             asynchronous operation. ReadFileEx lets an application perform
    123  *             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 completed
    126  *             and the calling thread is in an alertable wait state.
    127  * Parameters: HANDLE       hFile                handle of file to read
    128  *             LPVOID       lpBuffer             address of buffer
    129  *             DWORD        nNumberOfBytesToRead number of bytes to read
    130  *             LPOVERLAPPED lpOverlapped         address of offset
    131  *             LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine
    132  * Variables :
    133  * Result    : TRUE / FALSE
    134  * Remark    :
    135  * Status    : UNTESTED STUB
    136  *
    137  * Author    : Patrick Haller [Mon, 1998/06/15 08:00]
    138  *****************************************************************************/
    139 
    140 #define LPOVERLAPPED_COMPLETION_ROUTINE LPVOID
    141 
    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 WriteFileEx
    162  * Purpose   : The WriteFileEx function writes data to a file. It is designed
    163  *             solely for asynchronous operation, unlike WriteFile, which is
    164  *             designed for both synchronous and asynchronous operation.
    165  *             WriteFileEx reports its completion status asynchronously,
    166  *             calling a specified completion routine when writing is completed
    167  *             and the calling thread is in an alertable wait state.
    168  * Parameters: HANDLE       hFile                handle of file to write
    169  *             LPVOID       lpBuffer             address of buffer
    170  *             DWORD        nNumberOfBytesToRead number of bytes to write
    171  *             LPOVERLAPPED lpOverlapped         address of offset
    172  *             LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine address of completion routine
    173  * Variables :
    174  * Result    : TRUE / FALSE
    175  * Remark    :
    176  * Status    : UNTESTED STUB
    177  *
    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 
    199116#endif /* _ASYNCIOSUBSYSTEM_H_ */
Note: See TracChangeset for help on using the changeset viewer.