Sends a message to the recipient and wait for result.
Function SendMessage(Destination As String, Message As IIPCXMessage, Credentials As IPCXMessageCredentials) As Long
HRESULT _stdcall SendMessage([in] BSTR Destination, [in] IIPCXMessage * Message, [in] IIPCXMessageCredentials * Credentials, [out, retval] VARIANT_BOOL * res);
Return value is true if the message was sent successfully or false if timeout has expired.
IPC_OK is always returned.
Call this method to send the message to some other messenger and wait for reply from the recipient. Wait operation lasts infinitely (in fact, waiting is stopped after time specified by MaxTimeout property elapses). Destination specifies the address of the recipient. This method determines the right transport to use and passes the message to the transport. If the transport was not found or the request didn't reach the recipient for some reason, an exception is raised. [DLL] Error is determined by return value.
For information about error and timeout handling see Error and Timeout Handling topic.