Share via


COR_PRF_MODULE_FLAGS Enumeration

Specifies the properties of a module.

typedef enum
{
    COR_PRF_MODULE_DISK             = 0x00000001,
    COR_PRF_MODULE_NGEN             = 0x00000002,
    COR_PRF_MODULE_DYNAMIC          = 0x00000004,
    COR_PRF_MODULE_COLLECTIBLE      = 0x00000008,
    COR_PRF_MODULE_RESOURCE         = 0x00000010,
    COR_PRF_MODULE_FLAT_LAYOUT      = 0x00000020,
}   COR_PRF_MODULE_FLAGS;

Members

Member

Description

COR_PRF_MODULE_DISK

The module was loaded from disk.

COR_PRF_MODULE_NGEN

The module was generated by the Native Image Generator (Ngen.exe).

COR_PRF_MODULE_DYNAMIC

The module was created by methods in the System.Reflection.Emit namespace.

COR_PRF_MODULE_COLLECTIBLE

The module's lifetime is managed by the garbage collector.

COR_PRF_MODULE_RESOURCE

The module contains no metadata and is used strictly as a resource. The managed equivalent of this bit is the Module.IsResource method.

COR_PRF_MODULE_FLAT_LAYOUT

The module's layout in memory is flat, not mapped. If a module has this bit set, profilers that read information directly from the portable executable (PE) file header will have to be careful when interpreting relative virtual addresses (RVAs) in the header.

Remarks

Bits from COR_PRF_MODULE_FLAGS are returned to the profiler in the pdwModuleFlags output parameter of the ICorProfilerInfo3::GetModuleInfo2 method. Some combinations of two or more flags are possible, but not all combinations are possible.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 4

See Also

Other Resources

Profiling Enumerations