PC Review


Reply
Thread Tools Rate Thread

Do "windows service" apps exist on windows mobile

 
 
Mike Margerum
Guest
Posts: n/a
 
      12th Feb 2009
Can I build a windows service in C++ to run on a windows mobile device?

I have a small C++ windows mobile application that shuttles data between
a windows mobile device and an HTTP server. I need this program to
always be running. I don't want this application to be terminated by
windows mobile when its looking to free up memory.

Is there any way to do this on windows mobile?

Thanks!
 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      12th Feb 2009
Not a service in the same format, code-wise, as on desktop Windows, no.
There are things called 'services' in Windows Mobile/Windows CE, but they
are pretty much stream drivers. Look up Windows CE services, I would think,
on MSDN.

Paul T.

"Mike Margerum" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can I build a windows service in C++ to run on a windows mobile device?
>
> I have a small C++ windows mobile application that shuttles data between a
> windows mobile device and an HTTP server. I need this program to always
> be running. I don't want this application to be terminated by windows
> mobile when its looking to free up memory.
>
> Is there any way to do this on windows mobile?
>
> Thanks!



 
Reply With Quote
 
 
 
 
Simon Hart [MVP]
Guest
Posts: n/a
 
      15th Feb 2009
Usually one would write a console app or a app where you can control the
message pump so the UI isn't shown until required. You normally hide the app
from the memory applet so it can't be killed. You would also place a
shortcut in the start menu for it to load when the device boots.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://www.simonrhart.com

"Mike Margerum" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can I build a windows service in C++ to run on a windows mobile device?
>
> I have a small C++ windows mobile application that shuttles data between a
> windows mobile device and an HTTP server. I need this program to always
> be running. I don't want this application to be terminated by windows
> mobile when its looking to free up memory.
>
> Is there any way to do this on windows mobile?
>
> Thanks!


 
Reply With Quote
 
mikemargerum@gmail.com
Guest
Posts: n/a
 
      17th Feb 2009
>You normally hide the app
> from the memory applet so it can't be killed. You would also place a


Thanks for the reply. Can you elaborate on this?
 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      17th Feb 2009
The memory applet lists all top-level windows, by the window caption. If
your window is hidden, it won't appear.

Paul T.

<(E-Mail Removed)> wrote in message
news:56002794-c51d-4f3b-a115-(E-Mail Removed)...
> >You normally hide the app
>> from the memory applet so it can't be killed. You would also place a

>
> Thanks for the reply. Can you elaborate on this?



 
Reply With Quote
 
Simon Hart [MVP]
Guest
Posts: n/a
 
      18th Feb 2009
As Paul says

One thing to also bear in mind if you are targetting WM6.1 devices and later
that Microsoft ship a task manager so the user is able to kill any
application. You could handle the Closing event here and prevent the app from
closing.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://www.simonrhart.com


"(E-Mail Removed)" wrote:

> >You normally hide the app
> > from the memory applet so it can't be killed. You would also place a

>
> Thanks for the reply. Can you elaborate on this?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Meet the founders of OnMobile, IMI Mobile and several other coolmobile companies @ Mobile Apps Conference (October 31, 2009 . Bangalore) sri Microsoft C# .NET 0 16th Oct 2009 10:03 AM
Meet the founders of OnMobile, IMI Mobile and several other coolmobile companies @ Mobile Apps Conference (October 31, 2009 . Bangalore) srisri Microsoft Dot NET 0 16th Oct 2009 10:03 AM
Meet the founders of OnMobile, IMI Mobile and several other coolmobile companies @ Mobile Apps Conference (October 31, 2009 . Bangalore) srisri Microsoft Dot NET Framework 0 16th Oct 2009 10:02 AM
Can Windows Mobile 5.0 apps run on Windows Mobile 2003 Second Edition Devices? GRT Microsoft Dot NET Compact Framework 1 8th Aug 2005 09:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.