Windows CE MSMQ MQReceiveMessage

Windows CE MSMQ MQReceiveMessage

Post by Ming Huan » Fri, 29 Mar 2002 11:52:00



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

 
 
 

Windows CE MSMQ MQReceiveMessage

Post by Sergey Solyanik [MS » Mon, 08 Apr 2002 09:33:14


Are you trying to open a queue on a remote source? CE does not support it.
You have to create and open local queue.

--
Regards,

Sergey Solyanik
Windows CE Core OS

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.

IMPORTANT: I prefer that the follow-up questions be asked on the same thread
in the newsgroups and not by email, so that other people could benefit from
the discussion.


Quote:> 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


 
 
 

1. MSMQ in Windows CE for Automotive (Moonraker v3.5)

I am trying to add MSMQ functionality into my eVB app that
runs on a Windows CE for Automotive Device.  However, I am
unsure how to access (create new objects) for MSMQ using
this platform (assuming it's even included with the
standard build).  Does anyone have any ideas on how to do
this?

I found some great sample code at:

http://www.microsoft.com/mobile/developer/technicalarticles/msmq.asp

However, when I used the source code from the site to
build an app to run on WCEfA I get an error when I run
it.  The problem seems to come from the area of the code
where I create the object:

Set qinfo=CreateObject("CE_MSMQ.MSMQQueueInfo")
Set m = CreateObject("CE_MSMQ.MSMQMessage")

When doing this, how do I add MSMQ into my build, or is it
already there?  What do I need to do in order to get this
running?

2. How to uninstall xp?

3. Accessing Private Queues on remote machine using MSMQ Windows CE

4. ot - extract

5. Beta versions of MSMQ and HTTP server ports are available on Windows CE embedded website

6. Umax 4450 scanner issue

7. MSMQ in win XP with NT4 vs. MSMQ in win 98 and NT4

8. windows xp hangs after login

9. CE Dao : Windows CE Database Access for Windows CE

10. MSMQ for CE and OutFRSQueue

11. MSMQ Installation on CE

12. How can CE receive message from MSMQ on Desktop?

13. MSMQ CE not working in RC1