ReadFileScatter function kernel32

int ReadFileScatter(
  1. int hFile,
  2. Pointer<FILE_SEGMENT_ELEMENT> aSegmentArray,
  3. int nNumberOfBytesToRead,
  4. Pointer<Uint32> lpReserved,
  5. 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);