ReadFileScatter function kernel32
int
ReadFileScatter(
- int hFile,
- Pointer<
FILE_SEGMENT_ELEMENT> aSegmentArray, - int nNumberOfBytesToRead,
- Pointer<
Uint32> lpReserved, - Pointer<
OVERLAPPED> lpOverlapped,
Reads data from a file and stores it in an array of buffers. The function starts reading data from the file at a position that is specified by an OVERLAPPED structure. The ReadFileScatter function operates asynchronously.
BOOL ReadFileScatter(
[in] HANDLE hFile,
[in] FILE_SEGMENT_ELEMENT [] aSegmentArray,
[in] DWORD nNumberOfBytesToRead,
LPDWORD lpReserved,
[in, out] LPOVERLAPPED lpOverlapped
);
Implementation
int ReadFileScatter(
int hFile,
Pointer<FILE_SEGMENT_ELEMENT> aSegmentArray,
int nNumberOfBytesToRead,
Pointer<Uint32> lpReserved,
Pointer<OVERLAPPED> lpOverlapped) =>
_ReadFileScatter(
hFile, aSegmentArray, nNumberOfBytesToRead, lpReserved, lpOverlapped);