|
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
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|