Muokkaa

Jaa


ICLRDataTarget2::AllocVirtual Method

Called by the common language runtime (CLR) data access services to allocate memory in the address space of this target process.

Syntax

HRESULT AllocVirtual(
    [in] CLRDATA_ADDRESS addr,
    [in] ULONG32 size,
    [in] ULONG32 typeFlags,
    [in] ULONG32 protectFlags,
    [out] CLRDATA_ADDRESS* virt
);

Parameters

addr [in] A CLRDATA_ADDRESS value that specifies the requested starting address of the memory to be allocated.

size [in] The size, in bytes, of the memory to be allocated.

typeFlags [in] Flags that control the allocation of memory. See the Win32 VirtualAlloc function.

protectFlags [in] The protection attributes for the allocated memory. See the Win32 VirtualAlloc function.

virt [out] A pointer to a CLRDATA_ADDRESS value that specifies the actual starting address of the allocated memory.

Remarks

The AllocVirtual method serves as a logical wrapper for the Win32 VirtualAlloc function.

This method is implemented by the writer of the debugging application.

Requirements

Platforms: See System Requirements.

Header: ClrData.idl, ClrData.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

See also