Creating Queues (Windows Embedded CE 6.0)
1/6/2010
You create a queue by calling the MQCreateQueue function. In Windows Embedded CE, MQCreateQueue can create only a local private queue.
A connection to a domain controller is not required. Instead, a peer-to-peer setup that does not use a directory-service interface such as Microsoft Active Directory® is used. Because information about public queues is stored in Active Directory, you cannot create public queues in the embedded implementation of Windows.
ACL-based security is not supported. Set the pSecurityDescriptor parameter to NULL.
The following properties specified with the pQueueProps parameter have limited support on Windows Embedded CE.
Property | Embedded support |
---|---|
PROPID_Q_AUTHENTICATE |
Only MQ_AUTHENTICATE_NONE is enabled. |
PROPID_Q_BASEPRIORITY |
Accepted but not useful because there is no way to query it from outside. |
PROPID_Q_PATHNAME |
Only private path names are enabled. |
PROPID_Q_PRIV_LEVEL |
Only MQ_PRIV_LEVEL_NONE is enabled. |
PROPID_Q_TRANSACTION |
Only MQ_TRANSACTIONAL_NONE is enabled. |
PROPID_Q_TYPE |
Accepted but useless because there is no way to query it from outside. |
By default, the embedded implementation of MQCreateQueue creates queues that have no journal.
To create a queue that has a journal, set the PROPID_Q_JOURNAL to MQ_JOURNAL. Journaling is automatically turned on in the new queue.
To turn journaling off, call MQSetQueueProperties.
Calling MQSetQueueProperties to activate message journaling on a queue that was created without a journal will fail.
See Also
Concepts
MSMQ Application Development
Sending Messages to a Queue
Receiving Messages from a Queue
Connecting to Another Device
MSMQ COM Support
MSMQ Security