BOOL WINAPI ReadFile( _In_ HANDLE hFile, _Out_ LPVOID lpBuffer, _In_ DWORD nNumberOfBytesToRead, _Out_opt_ LPDWORD lpNumberOfBytesRead, _Inout_opt_ LPOVERLAPPED lpOverlapped ); Parameters hFile [in] A handle to the device (for example, a file, file stream, physical disk, volume, console buffer, tape drive, socket, communications resource, mailslot, or pipe). The hFile parameter must have been created with read access.
For more information, see and. For asynchronous read operations, hFile can be any handle that is opened with the FILE_FLAG_OVERLAPPED flag by the function, or a socket handle returned by the or function. LpBuffer [out] A pointer to the buffer that receives the data read from a file or device. This buffer must remain valid for the duration of the read operation. The caller must not use this buffer until the read operation is completed.
NNumberOfBytesToRead [in] The maximum number of bytes to be read. Tmnt Battle Nexus 2. LpNumberOfBytesRead [out, optional] A pointer to the variable that receives the number of bytes read when using a synchronous hFile parameter. ReadFile sets this value to zero before doing any work or error checking. Use NULL for this parameter if this is an asynchronous operation to avoid potentially erroneous results. This parameter can be NULL only when the lpOverlapped parameter is not NULL.
For more information, see the Remarks section. LpOverlapped [in, out, optional] A pointer to an structure is required if the hFile parameter was opened with FILE_FLAG_OVERLAPPED, otherwise it can be NULL. If hFile is opened with FILE_FLAG_OVERLAPPED, the lpOverlapped parameter must point to a valid and unique structure, otherwise the function can incorrectly report that the read operation is complete. For an hFile that supports byte offsets, if you use this parameter you must specify a byte offset at which to start reading from the file or device. This offset is specified by setting the Offset and OffsetHigh members of the structure. Commview For Wifi V5.6 Build 553. For an hFile that does not support byte offsets, Offset and OffsetHigh are ignored.
A pointer to the buffer that receives the data read from a file. The ReadFile function returns when one of. Pc Doctor Service Center 7.9 here. Read operation is complete (read. Input and Output ¶ There are several. To read a file’s contents, call f.read. Consult the Library Reference for a complete guide to file objects.
For more information about different combinations of lpOverlapped and FILE_FLAG_OVERLAPPED, see the Remarks section and the section. Return value If the function succeeds, the return value is nonzero ( TRUE).