Question

Background Service Application For Smart Device using C#

Asked by: SumanGhosh


Hi,

Is it possible to write an application using C# for Smart Devices [compatible to both Pocket PC and SmartPhone] that would run as a Service in the background like Windows Service Application.

All I want is to write a service application for smart device that would keep synchronizing with a Sql Server and update its local database by using Web Service. I am through with the Web Service, but could not manage with the Windows Service for Smart Devices.

I am badly stuck and have to meet my project deadline, please help me as soon as possible.

Regards,
Suman

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-09-11 at 07:37:03ID21984871
Tags

application

,

background

,

device

Topic

Pocket PC Other

Participating Experts
1
Points
250
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. j2me on smartphones
    is it possible to use j2me programs on smartphones??if yes how??
  2. Webpages for smartphones
    Webpages for phones with WAP technology are written in WML, but what about pages for smartphone operating systems like Windows Mobile? I want to develop a site for smartphones which will contain some graphics.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: Mikal613Posted on 2006-09-11 at 19:05:21ID: 17499344

yes you would create a Smart device application without exposing any forms.

Create the app as you would usually do without "ShowDialog" and do your thing.

 

by: SumanGhoshPosted on 2006-09-11 at 21:30:15ID: 17499881

Mikal613 we can work on Console application for smart Device but how to convert it to a Service?

 

by: Mikal613Posted on 2006-09-12 at 04:57:52ID: 17501635

 

by: SumanGhoshPosted on 2006-09-12 at 05:50:20ID: 17502016

This link doesn't open, can you check if theres any error in it?

 

by: Mikal613Posted on 2006-09-12 at 05:51:37ID: 17502027

It opens nicely for me.

If your using IE try firefox else vice versa

 

by: SumanGhoshPosted on 2006-09-12 at 05:53:47ID: 17502047

I just tried, but Its not opening from either of the browsers, says that the domain doesnt exist.

 

by: Mikal613Posted on 2006-09-12 at 05:56:50ID: 17502080

Pocket PC services
By Victor Sharov, February 26, 2004.
Print version

Summary
Often Pocket PC programs need a background process and most of existing Pocket PC programs implement it by creating an executable file which is started during system start-up. But Pocket PC has 32 processes limit and having many different programs running in background can be a serious problem. Pocket PC 2003 provides special mechanism implemented in Services.exe that allows Pocket PC developers to shape their background applications into services that run in one process as different threads. This article describes creating Pocket PC services, distributing them and gives a solution to run services on Pocket PC 2000 and 2002 platforms.

Table of Contents

What You Need
Introduction
Creating Service DLL
Creating Service DLL Using MFC
Creating Service DLL Without MFC
Service Registration in Registry
Distributing Services.exe for Pocket PC 2000/2002
Installing Service
Debugging Pocket PC Services
Samples
Conclusion

What You Need

Microsoft eMbedded Visual C++ 3.0
Services.exe for Pocket PC 2000 and Pocket PC 2002
SampleServiceMFC.zip - sample service written using MFC
SampleService.zip - sample service written without MFC

Introduction
Many Pocket PC applications need a background process. For example:

A program that shows a window when SD card is inserted
A permanent backup program
A program that control GPRS traffic
A Web server
A program that adds a special icons to the taskbar

 

Now almost all Pocket PC developers create an executable file and put shortcut to this file to \Windows\StartUp so this program is started just after reset and runs in background. This approach has a serious problem because number of processes in Windows CE is limited by 32. For example in XDA II Pocket PC devices there are 28 processes running just after soft-reset. If you install 2-3 third-party programs that need background process you will have only 1-2 processes for running programs!

Microsoft has introduced a solution for this problem in Windows Mobile 2003. Windows Mobile 2003 supports services which are DLLs run in one process (services.exe) as different threads. It solves the problem but:

Most Pocket PC developers do not know about this technology.
Services are not properly documented. For example you will not find necessary headers in Pocket PC 2003 SDK.
This technology is not supported on Pocket PC 2000 and Pocket PC 2002. So you cannot use services if you want to create programs that will work on both Pocket PC 2002 and Windows Mobile 2003 for Pocket PC.

This article describes how to solves these problems and how to create and distribute services for Pocket PC that will work on all Pocket PC versions.

Pocket PC service interface is similar to Pocket PC driver interface. Pocket PC service is a DLL that should export a set of functions and services.exe process loads these DLLs and initializes them by calling one of the functions.

This article is an appeal to Pocket PC developers Use services for background tasks!.

Creating Service DLL
Creating Service DLL Using MFC
The following steps are to be taken in order to implement an MFC-based service:


In Microsoft eMbedded Visual C++ create new WCE MFC AppWizard (dll) project
Add exported functions definitions (you should use your own prefix instead of MYS):
extern "C" DWORD PASCAL EXPORT MYS_Close(DWORD dwData)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 0;
}

extern "C" DWORD PASCAL EXPORT MYS_Deinit(DWORD dwData)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 0;
}

extern "C" DWORD PASCAL EXPORT MYS_Init(DWORD dwData)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 1;
}

extern "C" DWORD PASCAL EXPORT MYS_IOControl(
  DWORD dwData,
  DWORD dwCode,
  PBYTE pBufIn,
  DWORD dwLenIn,
  PBYTE pBufOut,
  DWORD dwLenOut,
  PDWORD pdwActualOut)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 1;
}

extern "C" DWORD PASCAL EXPORT MYS_Open(
  DWORD dwData,
  DWORD dwAccess,
  DWORD dwShareMode)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 0;
}

extern "C" DWORD PASCAL EXPORT MYS_Read(
  DWORD dwData,
  LPVOID pBuf,
  DWORD dwLen)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 0;
}

extern "C" DWORD PASCAL EXPORT MYS_Seek(
  DWORD dwData,
  long pos,
  DWORD type)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 0;
}

extern "C" DWORD PASCAL EXPORT MYS_Write(
  DWORD dwData,
  LPCVOID pInBuf,
  DWORD dwInLen)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return 0;
}

MYS here is a prefix that is to be specified further by application calls to Services.exe (here MYS stands for MY Service).

Note: as this DLL will be dynamically linked any functions exported from this DLL which call into MFC must have the AFX_MANAGE_STATE macro added at the very beginning of the function. It is very important that this macro appear in each function, prior to any calls into MFC. This means that it must appear as the first statement within the function, even before any object variable declarations as their constructors may generate calls into the MFC DLL. Please see MFC Technical Notes 33 and 58 for additional details.

Add these functions names to your project .def file export table (you should use your own prefix instead of MYS):
EXPORTS
    ; Explicit exports can go here
      MYS_Close
      MYS_Deinit
      MYS_Init
      MYS_IOControl
      MYS_Open
      MYS_Read
      MYS_Seek
      MYS_Write

This is now time to add some specific initialization code to MYS_Init function.

Most likely you need to create a new thread here that will encapsulate all service logic. Define thread controlling function to do that. That function is the right place to create additional windows, timers or any other application-specific needs. In the sample given we create a timer and run thread message loop.

UINT MyControllingFunction( LPVOID pParam )
{
      theApp.m_nTimer = SetTimer(0, 0, 10 * 1000, MyTimerProc);

      MSG msg;
      while (GetMessage(&msg, 0, 0, 0))
      {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
      }
      return 0;
}

extern "C" DWORD PASCAL EXPORT MYS_Init(DWORD dwData)
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());

      theApp.m_pThread = AfxBeginThread( MyControllingFunction, 0);

      return 1;
}


Be sure to return non-zero value from MYS_Init function as zero return value indicates service initialization failure and causes service DLL to be unloaded immediately.

Depending on your application needs you can put some logic to the other MYS_... methods in the same manner.


Creating Service DLL Without MFC
The following steps are to be taken in order to implement an MFC-based service:

In Microsoft eMbedded Visual C++ create new WCE Dynamic-Link Library project
Add exported functions definitions (you should use your own prefix instead of MYS):
DWORD MYS_Close(DWORD dwData)
{
      return 0;
}

DWORD MYS_Deinit(DWORD dwData)
{
      return 0;
}

DWORD MYS_Init(DWORD dwData)
{
      return 1;
}

DWORD MYS_IOControl(
  DWORD dwData,
  DWORD dwCode,
  PBYTE pBufIn,
  DWORD dwLenIn,
  PBYTE pBufOut,
  DWORD dwLenOut,
  PDWORD pdwActualOut)
{
      
      return 1;
}

DWORD MYS_Open(
  DWORD dwData,
  DWORD dwAccess,
  DWORD dwShareMode)
{
      return 0;
}

DWORD MYS_Read(
  DWORD dwData,
  LPVOID pBuf,
  DWORD dwLen)
{
      
      return 0;
}

DWORD MYS_Seek(
  DWORD dwData,
  long pos,
  DWORD type)
{
      
      return 0;
}

DWORD MYS_Write(
  DWORD dwData,
  LPCVOID pInBuf,
  DWORD dwInLen)
{
      
      return 0;
}

MYS here is a prefix that is to be specified further by application calls to Services.exe (here MYS stands for MY Service).

Add these functions names to your project .def file export table (you should use your own prefix instead of MYS):
EXPORTS
    ; Explicit exports can go here
      MYS_Close
      MYS_Deinit
      MYS_Init
      MYS_IOControl
      MYS_Open
      MYS_Read
      MYS_Seek
      MYS_Write

This is now time to add some specific initialization code to MYS_Init function.

Most likely you need to create a new thread here that will encapsulate all service logic. To do this define thread controlling function. That function is the right place to create additional windows, timers or any other application-specific needs. In the sample given we create a timer and run thread message loop.

unsigned long __cdecl MyControllingFunction( LPVOID pParam )
{
      g_nTimer = SetTimer(0, 0, 10 * 1000, MyTimerProc);

      MSG msg;
      while (GetMessage(&msg, 0, 0, 0))
      {
            TranslateMessage(&msg);
            DispatchMessage(&msg);
      }
      return 0;
}

DWORD MYS_Init(DWORD dwData)
{

      HANDLE hThread = CreateThread( 0, 0, MyControllingFunction, 0, 0, 0);

      return 1;
}


Be sure to return non-zero value from MYS_Init function as zero return value indicates service initialization failure and causes service DLL to be unloaded imediately.

Depending on your application needs you can put some logic to the other MYS_... methods in the same manner.

Please refer to Pocket PC services article to learn how to register your service to be started at system startup and how to start it programmatically. Please refer to MSDN Windows CE .NET 4.2 for further details.



Service Registration in Registry
In order to have service automatically started at system startup you should add an arbitrary named subkey to the registry HKEY_LOCAL_MACHINE\Services\Service key and specify the following values:

Order : REG_DWORD
Order in which Services.exe will load each service. The service with the lowest order is loaded first.
Dll : REG_SZ
Dynamic-link library (DLL) file to be loaded. Only file name without path. This DLL should be located in \Windows folder.
Keep : REG_DWORD
Must be 1 for services that should run in background, if Keep = 0, the DLL will be unloaded immediately after initialization.
Prefix : REG_SZ
Prefix of your functions exported from the service DLL (instead of xxx in xxx_Init, etc). Must be 3 symbols.
Index : REG_SZ
Service index (set to 0).
DisplayName : REG_SZ
Display service name.
Description : REG_SZ
Description of display service.
Context : REG_DWORD
Initial value passed into the initialization routine (must by 0).

For example, for the Sample MFC-based service to start as a service at boot time, the following registry key should be used.

[HKEY_LOCAL_MACHINE\Services\MyServ]
    "Dll"="MYS.dll"
    "Order"=dword:8
    "Keep"=dword:1
    "Prefix"="MYS"
    "Index"=dword:0
    "Context"=dword:0
    "DisplayName"="Sample MFC Service"
    "Description"="Sample Service demonstratig MFC usage"


Most probably you will write these values to registry in your installer using .inf file. Here is code for .inf file:

HKLM,Services\MyServ,Dll, 0x00000000,MYS.dll
HKLM,Services\MyServ,Prefix, 0x00000000,MYS
HKLM,Services\MyServ,Order, 0x00010001, 8
HKLM,Services\MyServ,Keep, 0x00010001, 1
HKLM,Services\MyServ,Index, 0x00010001, 0
HKLM,Services\MyServ,Context, 0x00010001, 0
HKLM,Services\MyServ,DisplayName, 0x00000000,Sample MFC Service
HKLM,Services\MyServ,Description, 0x00000000,Sample Service demonstratig MFC usage


Please refer to MSDN Windows CE .NET 4.2 for details.

Distributing Services.exe for Pocket PC 2000/2002
Windows Mobile 2003 for Pocket PC already includes servies.exe but if you want your program that implements a service runs on Pocket PC 2000 or Pocket PC 2002 you should distribute service.exe yourself.

This article contains service.exe implementation by Spb Software House that you can include in your installer. It scans the registry and loads registered services just after reset. It also provides functions to load/unload services but it does not implement functions for writing/reading to/from the service.

It is critically important for Pocket PC users that all services are run in one process and that all third-party developers use the same program on Pocket PC 2000 and 2002 to run services so we strongly recommend using the method described bellow.

To add Pocket PC 2002 support to your program that uses a service you should distribute services.exe with your program. Install services.exe to your local program folder and then check in setup.dll if installing services.exe is needed (it is needed for Pocket PC 2000 and 2002) and if needed copy it to \Windows folder:

Include services.exe into your CAB file. Install this file to your program folder (something like \Program Files\MyProgram\services.exe).
Add the following code to Install_Exit function of your setup.dll file (read more about using setup.dll in Pocket PC installers):
BOOL InstallServiceManagerIfNeeded(LPCTSTR pszInstallDir)
{
      //We do not need to install services.exe if Pocket PC 2003 or later
      OSVERSIONINFO osVer;
      GetVersionEx(&osVer);
      if (osVer.dwMajorVersion >= 4) {
            return FALSE;
      }

      //We do not need to install services.exe if it already exists
      WIN32_FIND_DATA wfd;
      HANDLE hFile = FindFirstFile(_T("\\windows\\services.exe"), &wfd);
      BOOL bExists = (hFile!=INVALID_HANDLE_VALUE);
      FindClose(hFile);
      if (bExists) {
            return FALSE;
      }

      //Copy services.exe from the local program folder
      CString strFilePath = CString(pszInstallDir) + _T("\\services.exe");

      if (!::CopyFile(strFilePath, _T("\\windows\\services.exe"), TRUE)) {
            //Error. File is not found
            return FALSE;
      }

      //Create shortcut in the autorun folder, so services.exe will be started after soft-reset
      TCHAR szStartupFolderPath[MAX_PATH];
      ::SHGetSpecialFolderPath(NULL, szStartupFolderPath, CSIDL_STARTUP , FALSE);
      CString strShortcutPath = CString(szStartupFolderPath)+_T("\\Services.lnk");
      ::SHCreateShortcut((LPTSTR)(LPCTSTR)strShortcutPath, _T("\\Windows\\Services.exe"));

      //Run servies.exe
      PROCESS_INFORMATION pi;
      ::CreateProcess(
            TEXT("\\windows\\Services.exe"),
            NULL, NULL, NULL, FALSE, 0, NULL, NULL, NULL,
            &pi);
      
      return TRUE;
}

Run InstallServiceManagerIfNeeded(LPCTSTR pszInstallDir) from your Install_Exit function in Setup.dll.
Do not forget that you should start your service after that by calling STStartService function.

Installing Service
To install a service you should copy your service DLL into the \Windows folder and start this service from Install_Exit function in Setup.dll. Do not forget to stop the service before uninstalling your program (in Uninstall_Init function of your Setup.dll).

Step by step:

Include your service DLL into your .inf file and install it to \Windows folder
Add lines into your .inf file to register your service in the registry: (read more in Service Registration in Registry )
[RegSettings.All]
HKLM,Services\MyServ,Dll, 0x00000000,MYS.dll
HKLM,Services\MyServ,Prefix, 0x00000000,MYS
HKLM,Services\MyServ,Order, 0x00010001, 8
HKLM,Services\MyServ,Keep, 0x00010001, 1
HKLM,Services\MyServ,Index, 0x00010001, 0
HKLM,Services\MyServ,Context, 0x00010001, 0
HKLM,Services\MyServ,DisplayName, 0x00000000,Sample MFC Service
HKLM,Services\MyServ,Description, 0x00000000,Sample Service demonstratig MFC usage

If your program supports Pocket PC 2000 or 2002 then distribute services.exe as it is described in Distributing Services.exe for Pocket PC 2000/2002
Start your service after installation your program:
#include "SpbServices.h"
...
codeINSTALL_EXIT
Install_Exit(
    HWND    hwndParent,
    LPCTSTR pszInstallDir,
    WORD    cFailedDirs,
    WORD    cFailedFiles,
    WORD    cFailedRegKeys,
    WORD    cFailedRegVals,
    WORD    cFailedShortcuts
)
{
      ...
      InstallServiceManagerIfNeeded(pszInstallDir);
      STStartService(_T("MyServ"));
      ...
}

Stop your service before uninstalling your program:
#include "SpbServices.h"
...
codeUNINSTALL_INIT
Uninstall_Init(
    HWND        hwndParent,
    LPCTSTR     pszInstallDir
)
{
      ...
      STStopService(_T("MyServ"));
      ...
}

You can also stop the service before installing your program to support "upgrade" scenario

Debugging Pocket PC Services
To debug your service you can attach to the services.exe process. You have to use the eVC++ 4 debugger for that because the eVC++ 3 debugger does not support attaching to remote processes. To attach the debugger to the services.exe proces you need a local copy of the services.exe file. Unfortunately you cannot copy the services.exe file from Pocket PC 2003 because it is stored in ROM in EXIP format.

But if you have a local copy of Windows Mobile 2003 services.exe you can attach to the services.exe process using the following step-by-step instructions:

Open your service project in Microsoft eMbedded C++ 4.0.
Add DebugBreak() calls in proper place of your code. (Setting breakpoints in your code will not help.)
Build debug configuration and upload your DLL to the device.
Add registry values desired as described above.
Start your service on the device (e.g. soft-reset).
Attach to the services process (Build / Start Debug / Attach to WCE process...).
Connect to your device.
Select "services.exe" as the process to debug. Browse for your local copy of services.exe binary image.
As soon as your service stops at the breakpoint you will be asked for local copy of your service DLL.
Start debugging.

Besides that you can use log files (for example STLogFile Library) to trace your program.

On Microsoft Mobile 2000 and 2002 devices you cannot attach to process so tracing with log files is the only way to debug.

Samples

SampleServiceMFC.zip - sample service written using MFC
SampleService.zip - sample service written without MFC

Conclusion
We strongly recommend using services for background tasks because of 32 process limit imposed by Windows CE. Although Pocket PC 2000 and Pocket PC 2002 do not support services you can add this support using services.exe from this article.

 

by: SumanGhoshPosted on 2006-09-13 at 03:17:59ID: 17510444

Hey,

Thanks Mikal613, there was some DNS problem. I finally resolved it and could connect to the site you referred. Good sample.

Regards,
Suman

 

by: SumanGhoshPosted on 2006-09-13 at 03:19:23ID: 17510449

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...