IOleObject::GetUserClassID
This method returns the object class identifier (CLSID) corresponding to the string identifying the object to an end-user.
HRESULT GetUserClassID(
CLSID *pClsid);
Parameter
- pClsid
[out] Pointer to the class identifier (CLSID) to be returned. An objects CLSID is the binary equivalent of the user-type name returned by IOleObject::GetUserType.
Return Values
This method supports the standard return value E_FAIL, as well as S_OK, which indicates that the CLSID returned successfully.
Remarks
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 will be that of the class being emulated rather than that of the objects own class.
Requirements
| Runs on | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 2.0 and later | Oleidl.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.