Hi,
I'm writing the services for PocketPC/smartphone dev. till now I don't start
MyService.dll with Services.exe. I do the following steps to start but can
not succeeded
I'm using CreateProcess("services.exe","load MyService",...) but it can't be
shown in the module of service.exe.
As I seen one blog
(http://blogs.msdn.com/cenet/archive/2005/05/25/421811.aspx) in which he
wrote
That
" The second, bigger problem is that it won't work anymore on PocketPC and
SmartPhone 2005 devices or later. This functionality is now disabled by
default. It can only be reenabled by setting the registry or value
HKLM\Services\AllowCmdLine to be non-zero."
so I add AllowCmdLine to 1 in registry but can not load the module.
My registry entry is
HKL\Services\
dll "\program files\MyService\MyService.dll"
Index dword:0
Keep dword:1
Order dword:9
Prefix "My"
AllowCmdLine dword:1
For calling CreateProcess method I made samrtdevice project in C#, in which
I call
CreateProcess("services.exe", "load Myservice", IntPtr.Zero, IntPtr.Zero,
0,, IntPtr.Zero, IntPtr.Zero, new Byte[128], pi);
Before running this project I install myservice through cab in poecket pc
emulator which are synched when I running the CreateProcess project of C#
Can someone please help me in this regard why myservice is not loaded.
Thanks once again
Regards
Sohail