IrDA Framework
ContentsIndexHome
PreviousUpNext
CwclMessageReceiver::Post Method

Posts the message into the messages queue.

Syntax
C++
int Post(CwclMessage* Message, bool Sync = false);
Parameters 
Description 
CwclMessage* Message 
The CwclMessage object represents a message. A caller is responsible to dispose the message object passed into the method.  
bool Sync = false 
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.
 

If the function successed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The method can be called from any thread. 

Note that if sync messages is posted it can be processed before any other message in the queue.  

 

Copyright (c) 2006-2017. All rights reserved.