WriteProcessMemory method

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

Implementation

int WriteProcessMemory(
  ffi.Pointer<ffi.Void> hProcess,
  ffi.Pointer<ffi.Void> lpBaseAddress,
  ffi.Pointer<ffi.Void> lpBuffer,
  int nSize,
  ffi.Pointer<ffi.Uint64> lpNumberOfBytesWritten,
) {
  return (_WriteProcessMemory ??=
      _dylib.lookupFunction<_c_WriteProcessMemory, _dart_WriteProcessMemory>(
          'WriteProcessMemory'))(
    hProcess,
    lpBaseAddress,
    lpBuffer,
    nSize,
    lpNumberOfBytesWritten,
  );
}