|
IOleObject::GetUserClassID
Returns an object's class identifier, the CLSID corresponding to the string
identifying the object to an end user.
HRESULT GetUserClassID(
CLSID *pClsid
| //Pointer to the class identifier
| );
|
|
Parameter
pClsid
[out] Points 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.
Return Values
S_OK
CLSID returned successfully.
E_FAIL
An unspecified error occurred.
Comments
GetUserClassID returns the CLSID associated with the object in the registration database.
Normally, 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 object's own class.
See Also
IOleObject::GetUserType, IPersist::GetClassID, OleDoAutoConvert, OleGetAutoConvert, OleSetAutoConvert, GetConvertStg, SetConvertStg
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|