다음을 통해 공유


OleRun (Windows CE 5.0)

Send Feedback

This function puts an OLE compound document object into the running state.

WINOLEAPIOleRun(LPUNKNOWNpUnknown);

Parameters

Return Values

The following HRESULT values can be returned.

Value Description
S_OK The object was placed in the running state.
OLE_E_CLASSDIFF The source of an OLE link was converted to a different class.
E_INVALIDARG The function failed.
E_OUTOFMEMORY The function failed.

Remarks

Passing invalid (and under some circumstances NULL) pointers into this function causes an unexpected termination of the application.

The OleRun function puts an object in the running state.

The implementation of OleRun was changed in OLE 2.01 to coincide with the publication of the IRunnableObject interface.

You can use OleRun and IRunnableObject::Run interchangeably.

OleRun queries the object for a pointer to IRunnableObject.

If successful, the function returns the results of calling the IRunnableObject::Run method.

The implementation of OleRun 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

Automation Functions | IUnknown | IRunnableObject | IRunnableObject::Run | Determining Supported COM APIs

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.