Share via


IHostMemoryManager::NeedsVirtualAddressSpace Method

Notifies the host that the common language runtime (CLR) is going to attempt to use the specified memory.

HRESULT NeedsVirtualAddressSpace (
    [in] LPVOID  startAddress,
    [in] SIZE_T  size
);

Parameters

  • startAddress
    [in] The starting address of the memory.

  • size
    [in] The size, in bytes, of the memory.

Remarks

The NeedsVirtualAddressSpace method is a callback method and must be implemented by the writer of the hosting application. It is called by the CLR.

If the host does not want the CLR to use the specified memory, it may return an E_OUTOFMEMORY HRESULT.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

IHostMemoryManager Interface