As title says, are WM_MESSAGEs sent with WM_BroadcastMessage() serialized and queued somewhere until consumed or the WM_MESSAGE
structure passed to WM_BroadcastMessage() must be valid till the message is consumed?
For example, is the following code legit:
Code
void SendSignal(const int id, const int v, void *p)
{
WM_MESSAGE msg;
msg.MsgId = id;
msg.Data.p = p;
msg.Data.v = v;
WM_BroadcastMessage(&msg);
}
or should WM_MESSAGE be declared static ?
This would imply I can send only one message at a time and wait until the message is consumed
before sending another one (or else I must manage myself a message queue).
This behavior is not documented anywhere as far as i can tell.
Best regards, Gabriele.