wclMessageReceiverPost Method |
Posts the message into the messages queue.
Namespace: wclCommonAssembly: wclCommon (in wclCommon.dll) Version: 7.11.10.0 (7.11.10.0)
Syntax public int Post(
wclMessage Message,
bool Sync = false
)
Public Function Post (
Message As wclMessage,
Optional Sync As Boolean = false
) As Integer
public:
int Post(
wclMessage^ Message,
bool Sync = false
)
Parameters
- Message wclMessage
- The wclMessage object represents
a message. A caller is responsible to dispose the message object
passed into the method.
- Sync Boolean (Optional)
If the Sync parameter set to
true and the thread that called the method is the same that
opened the receiver the message will be delivered without putting it
into the message queue.
If the thread that posting the message is different than one
that opened the receiver or the Sync parameter is false
(the default value) the message will be posted into the message
queue.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
Remarks The method can be called from any thread.
Note that if sync messages is posted it can be processed
before any other messages in the queue.
See Also