Compartilhar via


OleIsRunning

This function determines whether a compound document object is currently in the running state.

BOOL OleIsRunning(
  LPOLEOBJECT pObject
);

Parameters

  • pObject
    [in] Pointer to the IOleObject interface on the object of interest.

Return Values

This function returns TRUE if the object is running, otherwise it returns FALSE.

Remarks

Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application.

You can use OleIsRunning and IRunnableObject::IsRunning interchangeably. OleIsRunning queries the object for a pointer to the IRunnableObject interface and calls its IsRunning method. If successful, the function returns the results of the call to IRunnableObject::IsRunning.

**Note   **The implementation of OleIsRunning in earlier versions of OLE differs from that described here.

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

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Ole2.h.
Link Library: Ole32.lib.

See Also

IOleObject | IRunnableObject::IsRunning | IRunnableObject | Determining Supported COM APIs

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.