WriteFile method

int WriteFile(
  1. Pointer<Void> hFile,
  2. Pointer<Void> lpBuffer,
  3. int nNumberOfBytesToWrite,
  4. Pointer<Uint64> lpNumberOfBytesWritten,
  5. Pointer<LPOVERLAPPED> lpOverlapped,
)

Implementation

int WriteFile(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nNumberOfBytesToWrite,
  ffi.Pointer<ffi.Uint64> lpNumberOfBytesWritten,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
) {
  return (_WriteFile ??=
      _dylib.lookupFunction<_c_WriteFile, _dart_WriteFile>('WriteFile'))(
    hFile,
    lpBuffer,
    nNumberOfBytesToWrite,
    lpNumberOfBytesWritten,
    lpOverlapped,
  );
}