I am working on Windows Mobile 5.0 for Pocket PC.
I have created own service dll as TestService.dll refering sample code of
SampleServiceMFC.zip .
Resgistry settings for it as follows

[RegKeys]
"HKLM","Services\MyService","Order","0x00010001","8"
"HKLM","Services\MyService","Discription","0x00000000","Test Service
demonstratig MFC usage"
"HKLM","Services\MyService","Context","0x00010001","0"
"HKLM","Services\MyService","Prefix","0x00000000","TSE"
"HKLM","Services\MyService","Keep","0x00010001","1"
"HKLM","Services\MyService","Index","0x00010001","0"
"HKLM","Services\MyService","Dll","0x00000000","TestService.dll"
"HKLM","Services\MyService","DisplayName","0x00000000","Sample MFC
Service"

My sevice is not loaded if soft reset done.
Can any body help me with this problem.
Is it that on emulator it doen't work.

Re: How t o load our own service dll by John

John
Thu May 10 12:19:44 CDT 2007

First i recommend you check out:
http://blogs.msdn.com/cenet/archive/2006/03/19/debugging-a-service-not-being-able-to-load.aspx
http://blogs.msdn.com/windowsmobile/archive/2005/11/03/488934.aspx

You should also make sure your services registry key was persisted across
the reboot, I didn't think it a problem anymore but on older devics you have
to expilicitly call RegFlushKey() to make registry persist.

--
John Spaith
Software Design Engineer, 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.

"shraddha" <srajput123@rediffmail.com> wrote in message
news:O2ZYPnhkHHA.2552@TK2MSFTNGP06.phx.gbl...
>I am working on Windows Mobile 5.0 for Pocket PC. I have created own
>service dll as TestService.dll refering sample code of SampleServiceMFC.zip
>. Resgistry settings for it as follows
> [RegKeys] "HKLM","Services\MyService","Order","0x00010001","8"
> "HKLM","Services\MyService","Discription","0x00000000","Test Service
> demonstratig MFC usage"
> "HKLM","Services\MyService","Context","0x00010001","0"
> "HKLM","Services\MyService","Prefix","0x00000000","TSE"
> "HKLM","Services\MyService","Keep","0x00010001","1"
> "HKLM","Services\MyService","Index","0x00010001","0"
> "HKLM","Services\MyService","Dll","0x00000000","TestService.dll"
> "HKLM","Services\MyService","DisplayName","0x00000000","Sample MFC
> Service"
> My sevice is not loaded if soft reset done. Can any body help me with this
> problem. Is it that on emulator it doen't work.
>
>
>