Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 


Messenger     See also    

Sends a message to the recipient and wait for result.


    long SendMessage(char* Destination, IPCMessage* Message, IPCMessageCredentials* Credentials);

    function SendMessage(Destination : string; var Message : TIPCMessage; Credentials : PIPCMessageCredentials) : integer;

    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);

    public int SendMessage(string Destination, IPCMessage Message, IPCMessageCredentials —redentials);

    Public Function SendMessage(ByVal Destination As String, ByRef Message As IPCMessage, ByVal Credentials As IPCMessageCredentials) As Integer

    public int sendMessage(String destination, final IPCMessage message, IPCMessageCredentials credentials);

[Java ME]
    public int sendMessage(String destination, final IPCMessage message, IPCMessageCredentials credentials);

    long __stdcall IPCMessengerSendMessage(HIPCMessenger h, char* Destination, IPCMessage* Message, IPCMessageCredentials* Credentials, long* res);


  • [DLL]h - handle to the Messenger object that was returned by Create method

  • Destination - The address of the message recipient. See more here
  • Message - The message to be sent. See more here
  • Credentials - (optional) Credentials to be set for the message. Can be set to null (nil) if credentials system is not used. See more here
  • [DLL, ActiveX]res - result of method execution (see Result for details)

Return value

    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.