OLESTATUS OleExecute(lpObject, hCommands, wReserved)
LPOLEOBJECT lpObject;
HGLOBAL hCommands;
UINT wReserved;
The OleExecute function sends DDE execute commands to the server for the specified object.
Parameter | Description |
lpObject | Points to an object identifying the server to which DDE execute commands are sent. |
hCommands | Identifies the memory containing one or more DDE execute commands. |
wReserved | Reserved; must be zero. |
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 Execute callback function.
The return value is OLE_OK if successful; otherwise, it could 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
See AlsoOleQueryProtocol