CreateClassMoniker

Creates a file moniker based on the specified path.

WINOLEAPI CreateClassMoniker(

    REFCLSID rclsid,

//Class this moniker binds to

    IMoniker **ppmk

//Indirect pointer to class moniker

   );

 

 

Parameters

rclsid

[in] Reference to the CLSID of the object type to which this moniker binds.

ppmk

[out] When successful, indirect pointer to the IMoniker18XK102 interface on the new class moniker. In this case, the function has called IUnknown::AddRef1SHW0SS on the parameter and the caller is responsible for calling IUnknown::ReleaseDUW01A. When an error occurs, the value of the 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..

See Also

IMoniker - Class Moniker Implementation