VirtualProtect function kernel32

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

Changes the protection on a region of committed pages in the virtual address space of the calling process.

BOOL VirtualProtect(
  LPVOID lpAddress,
  SIZE_T dwSize,
  DWORD  flNewProtect,
  PDWORD lpflOldProtect
);

Implementation

int VirtualProtect(
  Pointer lpAddress,
  int dwSize,
  int flNewProtect,
  Pointer<Uint32> lpflOldProtect,
) => _VirtualProtect(lpAddress, dwSize, flNewProtect, lpflOldProtect);