---
name: "VirtualAllocEx"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/VirtualAllocEx"
---

# VirtualAllocEx(3w)

## NAME

**VirtualAllocEx** (KERNEL32.@)

## SYNOPSIS

LPVOID VirtualAllocEx\
  (\
   HANDLE *hProcess*,\
   LPVOID *addr*,\
   SIZE\_T *size*,\
   DWORD  *type*,\
   DWORD  *protect*\
  )

## DESCRIPTION

Seems to be just as VirtualAlloc, but with process handle.

## PARAMS

*hProcess* **\[In\]**  Handle to process to do mem operation.

*addr* **\[In\]**  Address of region to reserve or commit.

*size* **\[In\]**  Size of region.

*type* **\[In\]**  Type of allocation.

*protect* **\[In\]**  Type of access protection.

## RETURNS

**Success:** Base address of allocated region of pages.

**Failure:** **NULL**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/virtual.c"**.
