Hi Everyone,

I have written windows services many times for desktop windows, i.e.,
Windows XP. Now I want write windows service for Pocket PC (windows CE).
How can I do this? Or how can I accomplish this task through some other way?
Any hint will be enough...

Regards,
Asif

Re: How to write Windows Service in Pocket PC by Chris

Chris
Fri May 09 08:02:38 CDT 2008

This is a very good place to start:

http://msdn.microsoft.com/en-us/library/aa446909.aspx

John has some other valuable thoughts on implementing and debugging services
on his blog as well:

http://blogs.msdn.com/cenet/archive/tags/Author_3A00_+John+Spaith/default.aspx


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

"Asif" <Asif@discussions.microsoft.com> wrote in message
news:E2DE1600-99B0-45A5-9A9E-31B50701C9A3@microsoft.com...
> Hi Everyone,
>
> I have written windows services many times for desktop windows, i.e.,
> Windows XP. Now I want write windows service for Pocket PC (windows CE).
> How can I do this? Or how can I accomplish this task through some other
> way?
> Any hint will be enough...
>
> Regards,
> Asif



Re: How to write Windows Service in Pocket PC by Asif

Asif
Tue May 13 05:58:01 CDT 2008

thnx! This article helped me alot...
Now I am facing a problem. I made proper entries in WinCE's registry for my
service as described in the article. Services.exe successfully calls my DLL's
DLLMain() function. But XXX_Init() is not executing, which should be called
be the system when loading service.
Help me


"Chris Tacke, eMVP" wrote:

> This is a very good place to start:
>
> http://msdn.microsoft.com/en-us/library/aa446909.aspx
>
> John has some other valuable thoughts on implementing and debugging services
> on his blog as well:
>
> http://blogs.msdn.com/cenet/archive/tags/Author_3A00_+John+Spaith/default.aspx
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
> "Asif" <Asif@discussions.microsoft.com> wrote in message
> news:E2DE1600-99B0-45A5-9A9E-31B50701C9A3@microsoft.com...
> > Hi Everyone,
> >
> > I have written windows services many times for desktop windows, i.e.,
> > Windows XP. Now I want write windows service for Pocket PC (windows CE).
> > How can I do this? Or how can I accomplish this task through some other
> > way?
> > Any hint will be enough...
> >
> > Regards,
> > Asif
>
>
>

Re: How to write Windows Service in Pocket PC by Christopher

Christopher
Wed May 14 01:45:42 CDT 2008

Hi,

Asif wrote:
> Now I am facing a problem. I made proper entries in WinCE's registry for my
> service as described in the article. Services.exe successfully calls my DLL's
> DLLMain() function. But XXX_Init() is not executing, which should be called
> be the system when loading service.

One possible cause for this is for the exported functions to not be
correctly defined (for example having C++ name mangling applied to them
would do this).

Services.exe loads your DLL (hence DLLMain invoked) but when it calls
GetProcAddress to find your exported functions it fails to find them.

A quick check to verify this isn't the case can be done by using the
command line dumpbin.exe or the GUI based Dependency Walker application
(http://www.dependencywalker.com/ - a copy is also included with Visual
Studio installs).

I would check that the correct set of functions are exported, and that
the function names are as expected.

Hope this helps,
Christopher Fairbairn