MetaDataGetDispenser function (rometadata.h)

Creates a dispenser class.

Syntax

HRESULT MetaDataGetDispenser(
  REFCLSID rclsid,
  REFIID   riid,
  LPVOID   *ppv
);

Parameters

rclsid

Type: REFCLSID

This parameter must be CLSID_CorMetaDataDispenser.

riid

Type: REFIID

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

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

   
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