The information in this article applies to:
SUMMARYWhen you retrieve a message that is not at the front of the queue and its properties match with specific values (values for PROPID_M_MSGID, PROPID_M_CORRELATIONID, or any other property), use MQCreateCursor(), MQ_ACTION_PEEK_NEXT, and MQ_ACTION_PEEK_CURRENT functionality in MQReceiveMessage(). MORE INFORMATION
When you use Microsoft Message Queue Server 1.0, applications need to
perform filtering on their own. Examine the appropriate message properties
and decide whether to skip to the next message or not. Note that you
usually do not need to rescan the entire queue. By using a cursor, you
examine only new messages arriving to the queue. The MQ_ACTION_PEEK_NEXT
and MQ_ACTION_PEEK_CURRENT functionality in C API MQReceiveMessage() may be
used to implement your own filtering logic.
REFERENCES
For more information or to see a code example to find a specific message
using cursors, search the "Reading Messages Using a Cursor" topic in the
MSMQ SDK help file.
Additional query words: filter sort
Keywords : MQProg |
Last Reviewed: August 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |