RE: How can I register my service in PocketPC ? by RobertBurdickeMVP
RobertBurdickeMVP
Thu Mar 10 09:17:04 CST 2005
Set up a registry key under HKLM\Services\ServiceName. So a service called
MyServ would live in the registry under:
HKLM\Services\MyServ.
Then define the following values under this key:
DLL: (string) Name of the dll implementing the service
Prefix: (string) The 3 letter prefix used with the service export functions
so if the service implements MSV_Init, etc, Prefix would be set to MSV.
Index: (DWORD) A number that will be appended to the device name. If this
is 1, for example, clients will refer to your service as MSV1:
Context: (DWORD) 0=auto start on device startup, 1=Initially stopped, 2=load
in a standalone copy / instance of services.exe
Order: (DWORD) Indicates the order in which services are loaded
"paresh.sayani@gmail.com" wrote:
> Hi,
> I want to write an application that should be running all the time
> without user intervention. Initially, I thought of putting it in
> \windows\startup folder. In that case, the application will be
> launched automatically if the device is soft reset but if the
> application is manally stopped, then it will not be launched. So, I
> came across services.exe which comes with PocketPC 2003. I have written
> a service dll and exposed the resquired functions. Can any body tell me
> in steps, what should my next steps be in order to deploy it on
> PocketPC?
>
> Regards
> Paresh
>
>