This method of the IMoniker interface determines whether the object identified by this moniker is currently loaded and running.
public boolean IsRunning(IBindCtx pbc, IMoniker pmkToLeft, IMoniker pmkNewlyRunning);
The method supports the standard return value E_UNEXPECTED, as well as the following:
S_OK -- The moniker is running.
S_FALSE -- The moniker is not running.
[in] pbc | Pointer to the IBindCtx interface on the bind context to be used in this binding operation. The bind context caches objects bound during the binding process, contains parameters that apply to all operations using the bind context, and provides the means by which the moniker implementation should retrieve information about its environment. |
[in] pmkToLeft | Pointer to the IMoniker interface on the moniker to the left of this moniker if this moniker is part of a composite. This parameter is primarily used by moniker Implementers to enable cooperation between the various components of a composite moniker; moniker clients can usually pass NULL. |
[in] pmkNewlyRunning | Pointer to the IMoniker interface on the moniker most recently added to the Running Object Table (ROT). This can be NULL. If non-NULL, the implementation can return the results of calling IMoniker.IsEqual on the pmkNewlyRunning parameter, passing the current moniker. This parameter is intended to enable IMoniker.IsRunning implementations that are more efficient than just searching the ROT, but the implementation can choose to ignore pmkNewlyRunning without causing any harm. |