WriteFileEx method

int WriteFileEx(
  1. Pointer<Void> hFile,
  2. Pointer<Void> lpBuffer,
  3. int nNumberOfBytesToWrite,
  4. Pointer<LPOVERLAPPED> lpOverlapped,
  5. Pointer<NativeFunction<LPOVERLAPPED_COMPLETION_ROUTINE>> lpCompletionRoutine,
)

Implementation

int WriteFileEx(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nNumberOfBytesToWrite,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
  ffi.Pointer<ffi.NativeFunction<LPOVERLAPPED_COMPLETION_ROUTINE>>
      lpCompletionRoutine,
) {
  return (_WriteFileEx ??= _dylib
      .lookupFunction<_c_WriteFileEx, _dart_WriteFileEx>('WriteFileEx'))(
    hFile,
    lpBuffer,
    nNumberOfBytesToWrite,
    lpOverlapped,
    lpCompletionRoutine,
  );
}