Provides an interface pointer to the Running Object Table (ROT) for the machine on which this bind context is running.
HRESULT GetRunningObjectTable(
IRunningObjectTable **pprot //Address of output variable that
// receives the IRunningObjectTable
// interface pointer
);
This method supports the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following:
The Running Object Table is a globally accessible table on each machine. It keeps track of all the objects that are currently running on the machine.
Typically, those implementing a new moniker class (through an implementation of IMoniker interface) call IBindCtx::GetRunningObjectTable. It is useful to call this method in an implementation of IMoniker::BindToObject or IMoniker::IsRunning to check whether a given object is currently running. You can also call this method in the implementation of IMoniker::GetTimeOfLastChange to learn when a running object was last modified.
Moniker implementations should call this method instead of using the GetRunningObjectTable function. This makes it possible for future implementations of IBindCtx to modify binding behavior.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.