OLESTATUS OleExecute(lpObject, hCommands, uReserved) | |||||
LPOLEOBJECT lpObject; | /* pointer to object receiving DDE commands | */ | |||
HGLOBAL hCommands; | /* handle to memory with commands | */ | |||
UINT uReserved; | /* reserved | */ |
The OleExecute function sends 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.
hCommands
Identifies the memory containing one or more DDE execute commands.
uReserved
Reserved. This parameter must be zero.
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which can 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.
OleQueryProtocol