WriteFileGather function kernel32

int WriteFileGather(
  1. int hFile,
  2. Pointer<FILE_SEGMENT_ELEMENT> aSegmentArray,
  3. int nNumberOfBytesToWrite,
  4. Pointer<Uint32> lpReserved,
  5. Pointer<OVERLAPPED> lpOverlapped,
)

Retrieves data from an array of buffers and writes the data to a file. The function starts writing data to the file at a position that is specified by an OVERLAPPED structure. The WriteFileGather function operates asynchronously.

BOOL WriteFileGather(
  [in]      HANDLE                  hFile,
  [in]      FILE_SEGMENT_ELEMENT [] aSegmentArray,
  [in]      DWORD                   nNumberOfBytesToWrite,
            LPDWORD                 lpReserved,
  [in, out] LPOVERLAPPED            lpOverlapped
);

Implementation

int WriteFileGather(
  int hFile,
  Pointer<FILE_SEGMENT_ELEMENT> aSegmentArray,
  int nNumberOfBytesToWrite,
  Pointer<Uint32> lpReserved,
  Pointer<OVERLAPPED> lpOverlapped,
) => _WriteFileGather(
  hFile,
  aSegmentArray,
  nNumberOfBytesToWrite,
  lpReserved,
  lpOverlapped,
);