다음을 통해 공유


OleRun (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

WINOLEAPI OleRun(
  LPUNKNOWN pUnknown
); 

Parameters

Return Value

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

Header ole2.h
Library ole32.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

OLE Functions
Automation Functions
IUnknown
IRunnableObject
IRunnableObject::Run

Concepts

Determining Supported COM APIs