Messenger.PostMessage
Messenger
See also
Sends a message to the recipient without waiting for result.
[C++]
void PostMessage(char* Destination,
MCMessage* Message,
MCMessageCredentials* Credentials);
[Pascal]
procedure PostMessage(
Destination : string;
var Message : TMCMessage;
Credentials : PMCMessageCredentials);
[VB6]
Sub PostMessage(Destination As String,
Message As IMCXMessage,
Credentials As MCXMessageCredentials)
[ActiveX]
HRESULT _stdcall PostMessage([in] BSTR Destination,
[in] IMCXMessage * Message,
[in] IMCXMessageCredentials * Credentials);
[C#]
public void PostMessage(string Destination,
MCMessage Message,
MCMessageCredentials Ñredentials);
[VB.NET]
Public Sub PostMessage(ByVal Destination As String,
ByVal Message As MCMessage,
ByVal Credentials As MCMessageCredentials)
[Java]
public void postMessage(String destination,
MCMessage Message,
MCMessageCredentials credentials);
[Java ME]
public synchronized void postMessage(String destination,
MCMessage Message,
MCMessageCredentials credentials);
[Palm]
void PostMessage(char* Destination,
MCMessage* Message,
MCMessageCredentials* Credentials);
[DLL]
long __stdcall MCMessengerPostMessage(HMCMessenger h,
char* Destination,
MCMessage* Message,
MCMessageCredentials* Credentials,
bool* 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]
If there was no transport found MCE_NOTRANSPORT is returned, otherwise MC_OK is returned.
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.
|