John
Thu May 10 12:18:26 CDT 2007
I'm pretty sure what's happening here is the securiy model has changed
between PPC2003 & WM5. In many WM5 devices, you have to have your service
DLL signed with a trusted certificate in order for it to run.
http://blogs.msdn.com/cenet/archive/2006/03/19/debugging-a-service-not-being-able-to-load.aspx
has some additional details on debugging services not loading, but I think
the best for you will be Scott Yost's article
http://blogs.msdn.com/windowsmobile/archive/2005/11/03/488934.aspx
--
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.
"merimm" <merimm@discussions.microsoft.com> wrote in message
news:F7811524-EF29-4022-9716-CEDFB52A9F1D@microsoft.com...
> Hi all,
>
> I've got an application developed for PocketPC 2003 where a service
> registered in HKEY_LOCAL_MACHINE\Services\ is loaded trough the function
> ActivateService.
>
> Now I have to translate and re-compile in VS2005 in order to execute
> it on a Windows Mobile 5.0 device.
>
> I've tryed using ActivateService, RegisterService and GetServiceHandle
> (even
> it's deprecated since WM5.0) from setup.dll's Install_Init and
> Install_Exit
> functions, but none of them work. In fact, none of the functions xxx_Init,
> xxx_Open, etc. are being called.
>
> The registry entry actually exists at the very moment I try any of those
> functions but, as they always fail, the installation can not complete and
> that registry entry disappears.
>
> What else can I do?
>
> Any help will be appreciated.
> Thanks in advance.
>