Export (0) Print
Expand All

IRunningObjectTable::IsRunning method

Determines whether the object identified by the specified moniker is currently running.

Syntax


HRESULT IsRunning(
  [in]  IMoniker *pmkObjectName
);

Parameters

pmkObjectName [in]

A pointer to the IMoniker interface on the moniker.

Return value

If the object is in the running state, the return value is TRUE. Otherwise, it is FALSE.

Remarks

This method simply indicates whether a object is running. To retrieve a pointer to a running object, use the IRunningObjectTable::GetObject method.

Notes to Callers

Generally, you call the IsRunning method only if you are writing your own moniker class (that is, implementing the IMoniker interface). You typically call this method from your implementation of IMoniker::IsRunning. However, you should do so only if the pmkToLeft parameter of IMoniker::IsRunning is NULL. Otherwise, you should call IMoniker::IsRunning on your pmkToLeft parameter instead.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IRunningObjectTable is defined as 00000010-0000-0000-C000-000000000046

See also

IMoniker::IsRunning
IRunningObjectTable

 

 

Community Additions

ADD
Show:
© 2014 Microsoft