EMAllocType

Contains values that provide details to an IHostMAlloc about the kind of memory to allocate.

typedef enum {
    eMAllocThreadsafe = 0x1,
    eMAllocExecutable = 0x2
} EMallocType;

Fields

Field Description

eMAllocThreadsafe

true, if the memory returned can be accessed by multiple threads without synchronization; otherwise, false. If the value is false, calls on the object must be serialized.

eMAllocExecutable

true, if the allocated memory can contain a program and be executed; otherwise, false.

Remarks

The IHostMemoryManager::CreateMAlloc method takes a parameter of this type.

Requirements

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

Header: mscoree.h

Library: included as a resource in mscoree.dll

.NET Framework Version: 2.0

See Also

Reference

IHostMAlloc
IHostMemoryManager