VirtualProtectEx method

int VirtualProtectEx(
  1. Pointer<Void> hProcess,
  2. Pointer<Void> lpAddress,
  3. int dwSize,
  4. int flNewProtect,
  5. Pointer<Uint64> lpflOldProtect,
)

Implementation

int VirtualProtectEx(
  ffi.Pointer<ffi.Void> hProcess,
  ffi.Pointer<ffi.Void> lpAddress,
  int dwSize,
  int flNewProtect,
  ffi.Pointer<ffi.Uint64> lpflOldProtect,
) {
  return (_VirtualProtectEx ??=
      _dylib.lookupFunction<_c_VirtualProtectEx, _dart_VirtualProtectEx>(
          'VirtualProtectEx'))(
    hProcess,
    lpAddress,
    dwSize,
    flNewProtect,
    lpflOldProtect,
  );
}