Dataflow Runtime API
2.7.4.0
|
Send the message on a One-to-Windows Message Queue channel. More...
#include <Imt.Base.Dff.ActiveParts.WinEC7/ChannelOneToWindowsMsgQueue.h>
Public Member Functions | |
ChannelOneToWindowsMsgQueue (void) | |
Constructor. | |
virtual | ~ChannelOneToWindowsMsgQueue (void) |
Destructor. | |
virtual void | send (const uint16_t protocolIdentifier, const imt::base::core::serialization::SerializableIfc *const pEventData, const int32_t eventDataSizeBytes=imt::base::dff::runtime::EVENTDATA_SIZE_BYTES) |
Send the given data to receiver through the scheduler. More... | |
void | connectPorts (PortOutput &portOut, const HWND handle) |
Connector output port with window handle. More... | |
HWND | getHandle () const |
Returns the windows handle. More... | |
Public Member Functions inherited from imt::base::dff::activeparts::ChannelIfc | |
virtual | ~ChannelIfc (void) |
Destructor. | |
Static Public Attributes | |
static const uint32_t | WINDOWS_MESSAGE_IDENTIFIER = static_cast<uint32_t>(WM_APP) + 734U |
Windows Message Identifier for this Channel (0x82DE). More... | |
Send the message on a One-to-Windows Message Queue channel.
This channel ensures that any given message can be synchronized into the blocking Win32 UI thread in the order it has been placed.
void imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue::connectPorts | ( | PortOutput & | portOut, |
const HWND | handle | ||
) |
Connector output port with window handle.
Remarks: only call this once, else the old receiver gets overwritten. Hint: To get the window handle of a Silverlight for Windows Embedded application: HWND handle; IXRVisualHostPtr pVisualHost; App::GetVisualHost(&pVisualHost); pVisualHost->GetContainerHWND(&handle);
HWND imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue::getHandle | ( | ) | const |
Returns the windows handle.
|
virtual |
Send the given data to receiver through the scheduler.
protocolIdentifier | identifier of protocol, is required for the receiver. |
pEventData | pointer to serializable event data, can also be NULL. |
eventDataSizeBytes | Max number of bytes of serialized event data. |
Implements imt::base::dff::activeparts::ChannelIfc.
|
static |
Windows Message Identifier for this Channel (0x82DE).
Message numbers in the third range (0x8000 through 0xBFFF) are available for applications to use as private messages. Messages in this range do not conflict with system messages.