Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pocket pc service

0 views
Skip to first unread message

SEVM

unread,
Oct 16, 2009, 1:04:01 AM10/16/09
to
I am creating a pocket pc application i am synchronizing my data with
webservices every 5 minutes.
My questions is how to create a simple service that will run on the
background of the ppc to check if 5 minutes is passed and to execute a
function after 5 minutes.

Paul G. Tobey [eMVP]

unread,
Oct 16, 2009, 10:01:31 AM10/16/09
to
You'd have to tell us what version of Pocket PC to find out if a "service"
is possible. If all you want is an application, just write one that doesn't
create a main window for itself (generate an application with the new
project wizard and remove the contents of WinMain and replace with your
process).

If the device will suspend during this time, you'll have to use something
like CeRunAppAtEvent() to set an operating system event (CreateEvent), when
it's time for you to run. Then your main loop would just do
WaitForSingleObject() and, when it's signalled, do your thing. If you're
going to prevent the device from suspending, reset the system idle timer to
prevent suspend.

Paul T.

"SEVM" <SE...@discussions.microsoft.com> wrote in message
news:69C3A617-0268-4C03...@microsoft.com...

SEVM

unread,
Oct 29, 2009, 11:29:01 AM10/29/09
to
Hi Paul,
I created the service with the cab setup file but i cannot register it to
the pocket pc to run. Where should i install the files? I tried Windows
folder.
Is there anything like installutil? that i can use? in pocket pc
my version of pocket pc is mobile 5
I would appreciate your help thanks

> .
>

Paul G. Tobey [ eMVP ]

unread,
Oct 29, 2009, 3:28:01 PM10/29/09
to
I don't think that services.exe, which runs services, cares where you install
it, but it would certainly support installing to \windows.

Have you verified with Remote File Viewer that WM5 *has* services.exe in it?
That would be the first test of whether it's practical to install and use
your service.

How are you installing now? Most people install applications on Pocket PC
using a CAB file. The CAB file can specify registry entries to be made when
the application is installed. I don't see any reason why your service CAB
would be any different.

I don't know what installutil is so I have no way of saying where you'd find
something like it. If it's a program that makes the registry entries for a
service that you've simply copied to the \windows folder on the desktop, no,
there's nothing like that.

Paul T.

0 new messages