GetMetaDataInternalInterface

Gets a pointer to an internal interface instance used to read and write metadata in memory.


HRESULT  GetMetaDataInternalInterface (
   LPVOID pData,
   ULONG cbData,
   DWORD flags,
   REFIID riid,
   void **ppv
);

Parameters

Parameter Description

pData

[in] A pointer to the metadata section stored in memory.

cbData

[in] The size in bytes of the metadata section.

flags

[in] Either the ofRead or ofWrite members of the CorOpenFlags enumeration.

riid

[in] The IID of the requested internal interface.

ppv

[out] The location that receives the pointer to the internal interface.

Return Value

This method returns standard COM error codes as defined in winerror.h in addition to the following values.

Return code Description

S_OK

The method completed successfully.

E_INVALIDARG

ppv is NULL.

CLDB_E_FILE_CORRUPT (0x110E)

The metadata is corrupt or larger than the specified size of the metadata section.

Requirements

Library: mscoree.dll

Remarks

The flags argument determines whether the returned interface implements read-only or read-write functionality.

See Also

Reference

GetMetaDataInternalInterfaceFromPublic
GetMetaDataPublicInterfaceFromInternal