Partager via


Reading Messages from a Computer Journal (COM) (Windows Embedded CE 6.0)

1/6/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

  1. Declare the variables needed to retrieve the message.

  2. Call MSMQApplication.MachineIdOfMachineName to obtain the machine identifier.

  3. Construct the format name of the computer journal.

  4. Declare the variables needed to retrieve the message.

  5. Call MSMQQueueInfo.Open to open the computer journal with receive access.

  6. Call MSMQQueue.Receive to retrieve the first message in the computer journal.

  7. Call MSMQQueue.Close to close the computer journal.

See Also

Concepts

Requesting Journaling (COM)
MSMQ COM Support
Using the COM Components
MSMQ Security

Other Resources

Message Queuing