Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

IOleObject::GetUserClassID

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This method returns the object class identifier (CLSID) corresponding to the string identifying the object to an user.


HRESULT GetUserClassID( 
  CLSID* pClsid
);

pClsid

[out] Pointer to the class identifier (CLSID) to be returned.

An object's CLSID is the binary equivalent of the user-type name returned by IOleObject::GetUserType.

This method supports the standard return value E_FAIL, as well as S_OK, which indicates that the CLSID returned successfully.

GetUserClassID returns the CLSID associated with the object in the registration database. Usually, this value is identical to the CLSID stored with the object, which is returned by IPersist::GetClassID.

For linked objects, this is the CLSID of the last bound link source.

If the object is running in an application different from the one in which it was created and for the purpose of being edited is emulating a class that the container application recognizes, the CLSID returned is that of the class being emulated rather than that of the object's own class.

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

HeaderOleidl.h, oleidl.idl
Libraryoleaut32.lib, uuid.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft