Partager via


IRunnableObject::GetRunningClass (Compact 2013)

3/26/2014

This method returns the CLSID of a running object.

Syntax

HRESULT GetRunningClass(
  LPCLSID lpClsid 
);

Parameters

  • lpClsid
    [out] Pointer to the object's class identifier.

Return Value

This method supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following:

  • S_OK
    CLSID was returned successfully.

Remarks

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.

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

Requirements

Header

objidl.h,
objidl.idl

Library

ole32.lib,
uuid.lib

See Also

Reference

IRunnableObject
CoTreatAsClass