ReadProcessMemory method

int ReadProcessMemory(
  1. Pointer<Void> hProcess,
  2. Pointer<Void> lpBaseAddress,
  3. Pointer<Void> lpBuffer,
  4. int nSize,
  5. Pointer<Uint64> lpNumberOfBytesRead,
)

Implementation

int ReadProcessMemory(
  ffi.Pointer<ffi.Void> hProcess,
  ffi.Pointer<ffi.Void> lpBaseAddress,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nSize,
  ffi.Pointer<ffi.Uint64> lpNumberOfBytesRead,
) {
  return (_ReadProcessMemory ??=
      _dylib.lookupFunction<_c_ReadProcessMemory, _dart_ReadProcessMemory>(
          'ReadProcessMemory'))(
    hProcess,
    lpBaseAddress,
    lpBuffer,
    nSize,
    lpNumberOfBytesRead,
  );
}