OleRun
Runs an object.
HRESULT OleRun(
LPUNKNOWN pUnknown
| //Pointer to IUnknown interface
|
);
|
|
Parameter
pUnknown
Points to an object's
IUnknown interface in order to obtain a pointer from the
IRunnableObject interface in order to call
Run.
Return Values
S_OK
Indicates the object was successfully placed in the running state.
OLE_E_CLASSDIFF
Indicates the source of an OLE link has been converted to a different class.
E_INVALIDARG
Indicates an argument is invalid.
E_UNEXPECTED
Indicates an unexpected error occurred.
Comments
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.
See Also
IOleLink::BindToSource,
IRunnableObject::Run
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database