Sending Messages from Windows CE
Windows CE does not provide an object model for accessing MSMQ, so API calls need to be used. To use these API functions you will need to include mq.h and add the library msmqrt.lib to your project. A queue must first be opened, and then messages can be added to the queue. Finally, you will need to close the queue.
There are two ways in which a queue's name and location can be specified:
Format name— A string that contains information about how the queue is named, the DNS computer on which it is located, the type of queue (for example, private or public), and the queue's name.
Path name— A string that specifies the queue based only on the DNS, the queue type (private or public), and the queue's name.
An example ...