ReadFile method

int ReadFile(
  1. Pointer<Void> hFile,
  2. Pointer<Void> lpBuffer,
  3. int nNumberOfBytesToRead,
  4. Pointer<Uint64> lpNumberOfBytesRead,
  5. Pointer<LPOVERLAPPED> lpOverlapped,
)

Implementation

int ReadFile(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nNumberOfBytesToRead,
  ffi.Pointer<ffi.Uint64> lpNumberOfBytesRead,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
) {
  return (_ReadFile ??=
      _dylib.lookupFunction<_c_ReadFile, _dart_ReadFile>('ReadFile'))(
    hFile,
    lpBuffer,
    nNumberOfBytesToRead,
    lpNumberOfBytesRead,
    lpOverlapped,
  );
}