#include <ole.h> |
OLESTATUS OleExecute(lpObject, hglbCmds, reserved) | |||||
LPOLEOBJECT lpObject; | /* address of object receiving DDE commands | */ | |||
HGLOBAL hglbCmds; | /* handle of memory with commands | */ | |||
UINT reserved; | /* reserved | */ |
The OleExecute function sends dynamic data exchange (DDE) execute commands to the server for the specified object.
lpObject
Points to an object identifying the server to which DDE execute commands are sent.
hglbCmds
Identifies the memory containing one or more DDE execute commands.
reserved
Reserved; must be zero.
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:
OLE_BUSY
OLE_ERROR_COMMAND
OLE_ERROR_MEMORY
OLE_ERROR_NOT_OPEN
OLE_ERROR_OBJECT
OLE_ERROR_PROTOCOL
OLE_ERROR_STATIC
OLE_WAIT_FOR_RELEASE
The client application should call the OleQueryProtocol function, specifying StdExecute, before calling the OleExecute function. The OleQueryProtocol function succeeds if the server for an object supports the OleExecute function.