MetaDataGetDispenser function (rometadata.h)

Creates a dispenser class.

Syntax

HRESULT MetaDataGetDispenser(
  [in]  REFCLSID rclsid,
  [in]  REFIID   riid,
  [out] LPVOID   *ppv
);

Parameters

[in] rclsid

Type: REFCLSID

This parameter must be CLSID_CorMetaDataDispenser.

[in] riid

Type: REFIID

The interface to implement. This parameter can be either IID_IMetaDataDispenser or IID_IMetaDataDispenserEx.

[out] ppv

Type: LPVOID*

The dispenser class. The class implements IMetaDataDispenser or IMetaDataDispenserEx.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header rometadata.h
Library Rometadata.lib
DLL Rometadata.dll