Hi there,
I am trying to use MSMQ on Windows CE 3.0 but has met problem in receiving
message. Here is the detail:
Scenario: A none-transactional private queue with necessary permission is
created on Windows NT/XP. MSMQ service is started on Windows CE 3.0. By
using MSMQ APIs, I can send messages from CE to desktop, but I cannot create
a handle for receiving. The reason is explained in MSDN,
"You cannot use a direct format name to open a queue to read messages.
Direct format names can only be used if dwAccess is set to MQ_SEND_ACCESS.
When using a direct format name to send a message, all routing information
is derived from the format name and MSMQ sends the messages to the queue in
a single hop."
I tried direct format name in MQOpenQueue and always get
MQ_ERROR_QUEUE_NOT_FOUND error.
In this case how can I receive messages from a queue on desktop to Windows
CE? If I use Private Format Names, what is MachineGUID (The MSDN sample
using MQGetMachineProperties never works on desktop) and QueueNumber? I
tried tons of MSDN samples but none of them works on CE except sending
messages. Does anybody can help me to solve the problem?
Thanks
Ming Huang