Delen via


CorOpenFlags Enumeration

Contains flag values that control metadata behavior upon opening manifest files.

typedef enum CorOpenFlags
{
    ofRead              =   0x00000000,
    ofWrite             =   0x00000001,
    ofReadWriteMask     =   0x00000001,
    
    ofCopyMemory        =   0x00000002,
    
    ofManifestMetadata  =   0x00000008,
    ofReadOnly          =   0x00000010,
    ofTakeOwnership     =   0x00000020,
    
    ofCacheImage        =   0x00000004,
    ofNoTypeLib         =   0x00000080,
    
    ofReserved1         =   0x00000100,
    ofReserved2         =   0x00000200,
    ofReserved          =   0xffffff40
    
} CorOpenFlags;

Members

Member

Description

ofRead

Indicates that the file should be opened for reading only.

ofWrite

Indicates that the file should be opened for writing.

ofReadWriteMask

A mask for reading and writing.

ofCopyMemory

Indicates that the file should be read into memory. Metadata should maintain its own copy.

ofManifestMetadata

Indicates that the manifest metadata should be returned instead of the Microsoft intermediate language (MSIL) metadata.

ofReadOnly

Indicates that the file should be opened for reading, and that a call to QueryInterface for an IMetaDataEmit cannot be made.

ofTakeOwnership

Indicates that the memory was allocated using a call to CoTaskMemAlloc and will be freed by the metadata.

ofCacheImage

Obsolete. This flag is ignored.

ofNoTypeLib

Obsolete. This flag is ignored.

ofReserved1

Reserved for internal use.

ofReserved2

Reserved for internal use.

ofReserved

Reserved for internal use.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorHdr.h

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

See Also

Other Resources

Metadata Enumerations