CreateClassMoniker function (objbase.h)
Creates a class moniker that refers to the specified class.
Syntax
HRESULT CreateClassMoniker(
[in] REFCLSID rclsid,
[out] LPMONIKER *ppmk
);
Parameters
[in] rclsid
A reference to the CLSID of the object type to which this moniker binds.
[out] ppmk
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.
Return value
This function can return the following values.
Return code | Description |
---|---|
|
The moniker has been created successfully. |
|
One or more arguments are invalid. |
Remarks
The class moniker will support the binding to a fresh instance of the class identified by the CLSID in rclsid.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | objbase.h |
Library | Ole32.lib |
DLL | Ole32.dll |
API set | ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063) |