Reading Messages from a Computer Journal (COM)
A version of this page is also available for
4/8/2010
To read messages from a computer journal you must first obtain the machine identifier (GUID) of the computer associated with the computer journal.
The machine identifier is combined with the "Machine" and "JOURNAL" keywords to create the format name of the computer journal. Here is the syntax of format name for the computer journal.
Machine=MachineGUID;JOURNAL
To retrieve a message from a computer journal
Declare the variables needed to retrieve the message.
Call MSMQApplication.MachineIdOfMachineName to obtain the machine identifier.
Construct the format name of the computer journal.
Declare the variables needed to retrieve the message.
Call MSMQQueueInfo.Open to open the computer journal with receive access.
Call MSMQQueue.Receive to retrieve the first message in the computer journal.
Call MSMQQueue.Close to close the computer journal.
See Also
Concepts
MSMQ COM Support
Using the COM Components
MSMQ Security