Share via


CreateClassMoniker

This function creates a class moniker that refers to the given class.

WINOLEAPI CreateClassMoniker(
  REFCLSID rclsid,
  IMoniker** ppmk 
);

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

The class moniker supports binding to a fresh instance of the class identified by the CLSID in rclsid.

To determine whether the platform supports this function, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Objbase.h.
Link Library: Ole32.lib.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.