Returns the CLSID of a running object.
HRESULT GetRunningClass(
LPCLSID lpClsid //Pointer to an object's CLSID
);
This method supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following:
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.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.