IHostMemoryManager Interface

Provides methods that allow the common language runtime (CLR) to make virtual memory requests through the host, instead of using the standard Win32 virtual memory functions.

Method

Description

IHostMemoryManager::AcquiredVirtualAddressSpace Method

Notifies the host that the common language runtime (CLR) has acquired the specified memory from the operating system.

IHostMemoryManager::CreateMAlloc Method

Gets an interface pointer to an IHostMAlloc instance that is used to request memory allocations from a heap created by the host.

IHostMemoryManager::GetMemoryLoad Method

Gets the amount of physical memory that is currently being used, as reported by the host.

IHostMemoryManager::NeedsVirtualAddressSpace Method

Notifies the host that the CLR is going to attempt to use the specified memory.

IHostMemoryManager::RegisterMemoryNotificationCallback Method

Registers a pointer to a callback function that the host invokes to notify the CLR of the current memory load on the computer.

IHostMemoryManager::ReleasedVirtualAddressSpace Method

Notifies the host that the CLR has finished using the specified memory.

IHostMemoryManager::VirtualAlloc Method

Serves as a logical wrapper for the corresponding Win32 function, which reserves or commits a region of pages in the virtual address space of the calling process.

IHostMemoryManager::VirtualFree Method

Serves as a logical wrapper for the corresponding Win32 function, which releases, decommits, or releases and decommits a region of pages within the virtual address space of the calling process.

IHostMemoryManager::VirtualProtect Method

Serves as a logical wrapper for the corresponding Win32 function, which changes the protection on a region of committed pages in the virtual address space of the calling process.

IHostMemoryManager::VirtualQuery Method

Serves as a logical wrapper for the corresponding Win32 function, which retrieves information about a range of pages in the virtual address space of the calling process.

IHostMemoryManager also provides methods for the CLR to obtain a pointer through which to make memory requests on the heap and to get the level of memory pressure in the process, as reported by the host.

Platforms: See .NET Framework System Requirements.

Header: MSCorEE.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft