VirtualAllocEx function kernel32

Pointer<NativeType> VirtualAllocEx(
  1. int hProcess,
  2. Pointer<NativeType> lpAddress,
  3. int dwSize,
  4. int flAllocationType,
  5. int flProtect,
)

Reserves, commits, or changes the state of a region of memory within the virtual address space of a specified process. The function initializes the memory it allocates to zero.

LPVOID VirtualAllocEx(
  HANDLE hProcess,
  LPVOID lpAddress,
  SIZE_T dwSize,
  DWORD  flAllocationType,
  DWORD  flProtect
);

Implementation

Pointer VirtualAllocEx(int hProcess, Pointer lpAddress, int dwSize,
        int flAllocationType, int flProtect) =>
    _VirtualAllocEx(hProcess, lpAddress, dwSize, flAllocationType, flProtect);