Puts an OLE compound document object into the running state.
WINOLEAPI OleRun(
LPUNKNOWN pUnknown //Pointer to interface on the object
);
This function supports the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following:
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.
Note The implementation of OleRun in earlier versions of OLE differs from that described here.
For more information on using this function, see IRunnableObject::Run.
Windows CE: Passing into this function any invalid and, under some circumstances, NULL pointers will result in unexpected termination of the application. For more information about handling exceptions, see Programming Considerations.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Use version 2.0 or later.
Header: Declared in ole2.h.
Import Library: Included as a resource in ole32.dll.
IOleLink::BindToSource, IRunnableObject::Run