MessageQueue Event for new messages

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way to create an event that notifies when a message is added to
a MessageQueue, without resorting to polling the MessageQueue?

I.e., suppose we have a MessageQueue with several messages still in queue.
My process wants to know when a new message (of any sort) is added to the
queue.

Right now I have a Timer invoking a refresh via GetAllMessages() to detect
new messages. There must be a better way!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top