Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / WinCE Programming / January 2007

Tip: Looking for answers? Try searching our database.

MSMQ Install and Start on WM5 PPC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark J - 12 Dec 2006 17:18 GMT
I have been having a heck of a time getting MSMQ properly installed and
started on my Axim X51. I have found some good resources online that
have clarified required registry entries and I have been able to
download the MSMQ install from here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=cdfd2bb2-fa13-4062-b8d1
-4406ccddb5fd&DisplayLang=en


Registry Entries added to my device are:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSMQD]
"Entry"="MSMQDInitialize"
"Keep"=dword:00000001
"Order"=dword:00000009
"Dll"="MSMQD.Dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\SimpleClient]
"QueueManagerGUID"=hex:\
     5e,19,e7,6d,66,a0,f1,3d,8f,de,ea,c1,c6,b9,c3,21
"Port"=dword:00000709
"PingPort"=dword:00000dc7
"DefaultQuota"=dword:00000100
"CETrackNetwork"="Yes"
"CEStartAtBoot"=dword:00000001
"BinaryEnabled"="Yes"
"BaseDir"="\\Temp\\MSMQ"

My problem is trying to get MSMQD started. Whenever I call:

ActivateDevice(L"Drivers\\BuiltIn\\MSMQD", 0);

I get a NULL handle back. Calling GetLastError shows an error value of:

1 -  ERROR_INVALID_FUNCTION

Dumpbin /export indicates that the required entry "MSMQDInitialize" is
available within the MSMQD.Dll that has been installed within the
device \Windows directory.

Even though CEStartAtBoot is set to "1", MSMQD will not be initiated by
default when I try to reboot the device.

Note that I have do not appear to have the NETREGD.Dll file installed
on the device. I don't believe that this is a problem as I understand
that this driver is optional for MSMQ (I had planned on using IP
addresses within Queue path specs).

Any suggestions would be appreciated.
John Spaith [MS] - 14 Dec 2006 00:11 GMT
I think you want ActivateService("MSMQD",...) instead as the starting point,
since in later OS's msmq was moved to services.exe from device.exe.  On my
blog I have a list of helpers about how to get retail time dbg output from
MSMQ.

As a heads up I'll be on vacation & off email for next 2 weeks so I'm not
able to help beyond this.

Signature

John Spaith
Development Lead, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.

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

>I have been having a heck of a time getting MSMQ properly installed and
> started on my Axim X51. I have found some good resources online that
[quoted text clipped - 43 lines]
>
> Any suggestions would be appreciated.
Mark J - 18 Dec 2006 05:16 GMT
John,

Thanks for the info. ActivateService did the trick. For the sake of
completeness, I am including the required reg
entries for the service below.

[HKEY_LOCAL_MACHINE\Services\MSMQD]
"FriendlyName"="Microsoft Message Queueing"
"Keep"=dword:00000001
"Index"=dword:00000001
"Prefix"="MMQ"
"Order"=dword:00000009
"Dll"="MSMQD.dll"
"Context"=dword:00000000

Call detail is:

ActivateService(L"MSMQD", 0);

Thanks again and have a great vacation.

Regards,

Mark J

> I think you want ActivateService("MSMQD",...) instead as the starting point,
> since in later OS's msmq was moved to services.exe from device.exe.  On my
[quoted text clipped - 62 lines]
> >
> > Any suggestions would be appreciated.
John Spaith [MS] - 02 Jan 2007 02:05 GMT
Great, happy I was able to help you out here Mark.  Just to make sure we
don't have docs issues on MS's side, could you point me to where you got the
HKLM\Drivers\... registry stuff in the 1st place.  I'm guessing you were
looking at docs for the wrong version (we changed registry for MSMQ in
PPC2003 days I think), but I want to make sure newer docs don't have older
registry config.

Thanks

Signature

John Spaith
Development Lead, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.

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

John,

Thanks for the info. ActivateService did the trick. For the sake of
completeness, I am including the required reg
entries for the service below.

[HKEY_LOCAL_MACHINE\Services\MSMQD]
"FriendlyName"="Microsoft Message Queueing"
"Keep"=dword:00000001
"Index"=dword:00000001
"Prefix"="MMQ"
"Order"=dword:00000009
"Dll"="MSMQD.dll"
"Context"=dword:00000000

Call detail is:

ActivateService(L"MSMQD", 0);

Thanks again and have a great vacation.

Regards,

Mark J

John Spaith [MS] wrote:
> I think you want ActivateService("MSMQD",...) instead as the starting
> point,
[quoted text clipped - 64 lines]
> >
> > Any suggestions would be appreciated.
Mark J - 02 Jan 2007 17:51 GMT
John,

Within CE 5.0 Platform Builder help, I found the following page
(excerpt below):

"""""
Windows CE Features > Applications and Services Development > Message
Queuing > MSMQ Application Development > Application Installation of
MSMQ > Installation Options

Configuring all necessary MSMQ registry parameters saves you from
including MSMQADM in the OS design. For information about registry
settings, see MSMQ Registry Settings.

Although some registry settings are optional, the following settings
must be set for MSMQ to run.

To install MSMQ as a device driver

Set the following in the registry.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSMQD]
   "Dll"="MSMQD.DLL"
   "Entry"="MSMQDInitialize"
   "Keep"=DWORD:1
   "Order"=DWORD:9
""""

There is no mention of installing MSMQ as a service.

I assumed that CE 5.0 support would match that for WM5. Perhaps this
was wrong?

I recall that all online references to MSMQ installation (that I saw)
may have related to PPC2003 and earlier.

Happy New Year!

Regards,

Mark J

> Great, happy I was able to help you out here Mark.  Just to make sure we
> don't have docs issues on MS's side, could you point me to where you got the
[quoted text clipped - 110 lines]
> > >
> > > Any suggestions would be appreciated.
John Spaith [MS] - 04 Jan 2007 16:54 GMT
Mark - this is a doc bug on our side, my apologies.  I will work with our
documentation people to get this fixed up.  MSMQ has been a service since
around CE 4.0, but this doc wasn't changed to reflect that.

For the other question, CE 5.0 MSMQ is the same as what was shipped in WM5.

Signature

John Spaith
Development Lead, Windows CE
Microsoft Corporation

Check out the CE Networking Team Blog at http://blogs.msdn.com/cenet/.

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

John,

Within CE 5.0 Platform Builder help, I found the following page
(excerpt below):

"""""
Windows CE Features > Applications and Services Development > Message
Queuing > MSMQ Application Development > Application Installation of
MSMQ > Installation Options

Configuring all necessary MSMQ registry parameters saves you from
including MSMQADM in the OS design. For information about registry
settings, see MSMQ Registry Settings.

Although some registry settings are optional, the following settings
must be set for MSMQ to run.

To install MSMQ as a device driver

Set the following in the registry.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSMQD]
   "Dll"="MSMQD.DLL"
   "Entry"="MSMQDInitialize"
   "Keep"=DWORD:1
   "Order"=DWORD:9
""""

There is no mention of installing MSMQ as a service.

I assumed that CE 5.0 support would match that for WM5. Perhaps this
was wrong?

I recall that all online references to MSMQ installation (that I saw)
may have related to PPC2003 and earlier.

Happy New Year!

Regards,

Mark J

John Spaith [MS] wrote:
> Great, happy I was able to help you out here Mark.  Just to make sure we
> don't have docs issues on MS's side, could you point me to where you got
[quoted text clipped - 119 lines]
> > >
> > > Any suggestions would be appreciated.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2012 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.