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



Messenger.PostMessage

Messenger     See also    


Sends a message to the recipient without waiting for result.

Declaration

[C++]
    void PostMessage(char* Destination, IPCMessage* Message, IPCMessageCredentials* Credentials);

[Pascal]
    procedure PostMessage( Destination : string; var Message : TIPCMessage; Credentials : PIPCMessageCredentials);

[VB6]
    Sub PostMessage(Destination As String, Message As IIPCXMessage, Credentials As IPCXMessageCredentials)

[ActiveX]
    HRESULT _stdcall PostMessage([in] BSTR Destination, [in] IIPCXMessage * Message, [in] IIPCXMessageCredentials * Credentials);

[C#]
    public void PostMessage(string Destination, IPCMessage Message, IPCMessageCredentials —redentials);

[VB.NET]
    Public Sub PostMessage(ByVal Destination As String, ByVal Message As IPCMessage, ByVal Credentials As IPCMessageCredentials)

[Java]
    public void postMessage(String destination, IPCMessage Message, IPCMessageCredentials credentials);

[Java ME]
    public synchronized void postMessage(String destination, IPCMessage Message, IPCMessageCredentials credentials);

[DLL]
    long __stdcall IPCMessengerPostMessage(HIPCMessenger h, char* Destination, IPCMessage* Message, IPCMessageCredentials* Credentials, bool* res);

Parameters

  • [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

Return value

[DLL]
    If there was no transport found IPCE_NOTRANSPORT is returned, otherwise IPC_OK is returned.

Description

     This method sends a message for which reply is not needed. Destination Messenger doesn't send any reply to sender.
For information about error and timeout handling see Error and Timeout Handling topic.