ReadFileEx method

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

Implementation

int ReadFileEx(
  ffi.Pointer<ffi.Void> hFile,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nNumberOfBytesToRead,
  ffi.Pointer<LPOVERLAPPED> lpOverlapped,
  ffi.Pointer<ffi.NativeFunction<LPOVERLAPPED_COMPLETION_ROUTINE>>
      lpCompletionRoutine,
) {
  return (_ReadFileEx ??=
      _dylib.lookupFunction<_c_ReadFileEx, _dart_ReadFileEx>('ReadFileEx'))(
    hFile,
    lpBuffer,
    nNumberOfBytesToRead,
    lpOverlapped,
    lpCompletionRoutine,
  );
}