CreateClassMoniker

Creates a file moniker based on the specified path.

WINOLEAPI CreateClassMoniker(
  REFCLSID rclsid, //Class this moniker binds to
  IMoniker **ppmk  //Address of output variable that receives the 
                   // IMoniker interface pointer
);
 

Parameters

rclsid
[in] Reference to the CLSID of the object type to which this moniker binds.
ppmk
[out] Address of IMoniker* pointer variable that receives the interface pointer to the new class moniker. On successful return, the function has called IUnknown::AddRef on the moniker and the caller is responsible for calling IUnknown::Release. When an error occurs, the value of the moniker pointer is NULL.

Return Values

S_OK
The moniker has been created successfully.
E_INVALIDARG
One or more arguments are invalid.

Remarks

CreateClassMoniker creates a class moniker that refers to the given class. The class moniker will supports binding to a fresh instance of the class identified by the CLSID in rclsid..

QuickInfo

  Windows NT: Use version 3.1 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in objbase.h.
  Import Library: Included as a resource in ole32.dll.

See Also

IMoniker - Class Moniker Implementation