VirtualProtectFromApp method

int VirtualProtectFromApp(
  1. Pointer<Void> Address,
  2. int Size,
  3. int NewProtection,
  4. Pointer<Uint64> OldProtection,
)

Implementation

int VirtualProtectFromApp(
  ffi.Pointer<ffi.Void> Address,
  int Size,
  int NewProtection,
  ffi.Pointer<ffi.Uint64> OldProtection,
) {
  return (_VirtualProtectFromApp ??= _dylib.lookupFunction<
      _c_VirtualProtectFromApp,
      _dart_VirtualProtectFromApp>('VirtualProtectFromApp'))(
    Address,
    Size,
    NewProtection,
    OldProtection,
  );
}