IRunnableObject interface

Enables a container to control the running of its embedded objects. In the case of an object implemented with a local server, calling the Run method launches the server's .EXE file. In the case of an object implemented with an in-process server, calling Run causes the object .DLL file to transition into the running state.


The IRunnableObject interface has these methods.

Method Description
IRunnableObject::GetRunningClass Retrieves the CLSID of a running object.
IRunnableObject::IsRunning Determines whether an object is currently in the running state.
IRunnableObject::LockRunning Locks an already running object into its running state or unlocks it from its running state.
IRunnableObject::Run Forces an object to run.
IRunnableObject::SetContainedObject Notifies an object that it is embedded in an OLE container, which ensures that reference counting is done correctly for containers that support links to embedded objects.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objidl.h