Index   Commented   Search   About

IRunnableObject::GetRunningClass

Returns the CLSID of a running object.

HRESULT GetRunningClass(

LPCLSID lpClsid
//Pointer to an object's CLSID
);

Parameter

lpClsid

[out] Points to the object's class ID.

Return Values

S_OK

CLSID was returned successfully.

E_INVALIDARG

An argument is invalid.

E_UNEXPECTED

An unexpected error occurred.

Comments

If an embedded document was created by an application that is not available on the user's computer, the document, by a call to CoTreatAsClass, may be able to display itself for editing by emulating a class that is supported on the user's machine. In this case, the CLSID returned by a call to IRunnableObject::GetRunningClass will be that of the class being emulated, rather than the document's native class.

See Also

CoTreatAsClass

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

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

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun