CreateClassMoniker function (objbase.h)
Creates a class moniker that refers to the specified class.
HRESULT CreateClassMoniker( [in] REFCLSID rclsid, [out] LPMONIKER *ppmk );
A reference to the CLSID of the object type to which this moniker binds.
The address of an IMoniker* pointer variable that receives the interface pointer to the new class moniker. On successful return, the function has called AddRef on the moniker and the caller is responsible for calling Release. When an error occurs, the value of the moniker pointer is NULL.
This function can return the following values.
||The moniker has been created successfully.|
||One or more arguments are invalid.|
The class moniker will support the binding to a fresh instance of the class identified by the CLSID in rclsid.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|API set||ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063)|