VirtualAllocEx function kernel32
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);