[in] A pointer that specifies the starting address of the memory area.

cbData

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

dwOpenFlags

[in] A value of the CorOpenFlags enumeration to specify the mode (read, write, and so on) for opening.

riid

[in] The IID of the desired metadata interface to be returned; the caller will use the interface to import (read) or emit (write) metadata.

The value of riid must specify one of the "import" or "emit" interfaces. Valid values are IID_IMetaDataEmit, IID_IMetaDataImport, IID_IMetaDataAssemblyEmit, IID_IMetaDataAssemblyImport, IID_IMetaDataEmit2, or IID_IMetaDataImport2.