
Windows CE Services Douglas Boling President Boling Consulting Inc. ww.bolingconsulting.com MEDC DevCon 2005
Windows CE Services Douglas Boling President Boling Consulting Inc. www.bolingconsulting.com

Microsoft MEDC Mobile Embedded DevCon 2005 May9-12,2005 Las Vegas Microsoft

Windows Mobile Windows CE5.0 Windows Windows Hardware/Drivers OEM/HV Supplied BSP OEM Hardware and Standard PC (ARM,SH4,MIPS) Standard Drivers Hardware and Drivers Device Building Windows XP DDK Tools Platfo-.ouilder Windows Embedded Studio Lightweigh EDB SQL Server 2005 Express Edition Relationa SQL Server 2005 Mobile Edition SQL Server 2005 Native Win32 MFC 8.0.ATL 8.0 Managed .NET Compact Framework .NET Framework server side ASP.NET Mobile Controls ASP.NET Multimedia Windows Media DirectX Location services MapPoint Development Tools Visual Studio 2005 Internet Security and Acceleration Server communications Exchange Server Messaging Live Communications Server Speech Server Device Update Agent Management Image Update Software Update Services Tools Systems Management Server Microsoft Operations Manager
Management Tools Communications & Messaging Device Update Agent Software Update Services Live Communications Server Exchange Server Internet Security and Acceleration Server Speech Server Image Update Location Services Multimedia MapPoint DirectX Windows Media Development Tools Visual Studio 2005 MFC 8.0, ATL 8.0 Native Win32 Managed Server Side Lightweight Relational EDB SQL Server 2005 Express Edition Data Programming Model Device Building Tools Hardware/Drivers Windows XP DDK Windows Embedded Studio Platform Builder OEM/IHV Supplied BSP (ARM, SH4, MIPS) OEM Hardware and Standard Drivers Standard PC Hardware and Drivers SQL Server 2005 Mobile Edition SQL Server 2005 ASP.NET Mobile Controls ASP.NET .NET Compact Framework .NET Framework Microsoft Operations Manager Systems Management Server

Speaker Douglas Boling dbolingmedc bolingconsulting.com Author-"Programming Microsoft Windows CE 3rd Edition" Trainer-Classes on Windows CE App Development Windows CE OAL Development Consultant Work with companies to help their application and platform development efforts
Speaker Douglas Boling dbolingmedc @ bolingconsulting.com Author – “Programming Microsoft Windows CE 3rd Edition” Trainer – Classes on Windows CE App Development Windows CE OAL Development Consultant – Work with companies to help their application and platform development efforts

Agenda Introducing Windows CE Services What it is Why it's here The anatomy of a service The Super Service The service APl Stand alone services
Agenda Introducing Windows CE Services What it is Why it’s here The anatomy of a service The Super Service The service API Stand alone services

Why Use A Service? Windows CE has a 32 process limit Too many processes can cause problems Processes can be terminated Processes have to do their own TCP/IP serving
Why Use A Service? Windows CE has a 32 process limit Too many processes can cause problems Processes can be terminated Processes have to do their own TCP/IP serving

Background Windows CE originally didn't have the concept of a service Developers wrote "Device Drivers"that would run in the background Bugs in a service could bring down device.exe Which could bring down the system
Background Windows CE originally didn’t have the concept of a service Developers wrote “Device Drivers” that would run in the background Bugs in a service could bring down device.exe Which could bring down the system

Background Services Manager solves this problem Challenge: Simple porting of "legacy"services Answer: Match the device driver interface
Background Services Manager solves this problem Challenge: Simple porting of “legacy” services Answer: Match the device driver interface

What is a Service? ⊙It's a DLL Loaded by the Services Manager Adds threads without adding a process Reduces the need for background processes Harder for the user to shut down accidentally
What is a Service? It’s a DLL Loaded by the Services Manager Adds threads without adding a process Reduces the need for background processes Harder for the user to shut down accidentally

The Lifetime of a Service A service is loaded into memory The service is started The service can be auto-started on load The service performs the work The service can be stopped and restarted programmatically The service can be unloaded if desired
The Lifetime of a Service A service is loaded into memory The service is started The service can be auto-started on load The service performs the work The service can be stopped and restarted programmatically The service can be unloaded if desired