Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CreateClassMoniker function

Creates a class moniker that refers to the specified class.

Syntax


HRESULT CreateClassMoniker(
  _In_  REFCLSID  rclsid,
  _Out_ LPMONIKER *ppmk
);

Parameters

rclsid [in]

A reference to the CLSID of the object type to which this moniker binds.

ppmk [out]

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 codeDescription
S_OK

The moniker has been created successfully.

E_INVALIDARG

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

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

IMoniker

 

 

Show:
© 2017 Microsoft