VirtualAllocExX

The VirtualAllocExX allocates memory in the target process.

function VirtualAllocExX(
  dwProcessID: DWord;
  pAddress: Pointer;
  dwSize: DWord;
  dwAllocationType: DWord;
  dwProtect: DWord
): pointer; stdcall;

Parameters

dwProcessID
[in] Process id or process handle of the target process.
 
pAddress
[in] Pointer to address which is allocated. This can be nil.
 
dwSize
[in] Size of memory which is allocated.
dwAllocationType
[in] Type of memory allocation.
dwProtect
[in] Memory protection.
 
 
Remarks

On Win9x the memory can directly written. It is accessable by all processes.

 

Return Values

If the function succeeds, the return value is the address of memory inside the target process.

If the function fails, the return value is 0.

 

Requirements

Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Header

Declared in uallKernel.pas