VirtualProtect method

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

Implementation

int VirtualProtect(
  ffi.Pointer<ffi.Void> lpAddress,
  int dwSize,
  int flNewProtect,
  ffi.Pointer<ffi.Uint64> lpflOldProtect,
) {
  return (_VirtualProtect ??=
      _dylib.lookupFunction<_c_VirtualProtect, _dart_VirtualProtect>(
          'VirtualProtect'))(
    lpAddress,
    dwSize,
    flNewProtect,
    lpflOldProtect,
  );
}