Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Mobile
Windows Mobile 5.0
Native Code
Networking
Servers
Services.exe
 Services.exe Application Developmen...

  Switch on low bandwidth view
Windows Mobile Version 5.0 SDK
Services.exe Application Development for Windows Mobile-based Devices
Send Feedback

The programming model for writing services and writing device drivers is very similar in Windows CE-based devices. You can develop a server that runs on Device.exe rather than on Services.exe, but has the identical code, provided your server does not require advanced features offered by Services.exe. However developing a server that runs on Device.exe instead of on Services.exe is done at the expense of the increased stability that Services.exe offers. If a driver does not need access to hardware or it does not need to use intra-process communication to another device driver, writing it as a service for Services.exe is highly recommended.

Services.exe can also be configured to wait on connections from multiple sockets for multiple services. Upon arrival of a connection request from a particular socket, Services.exe dispatches the request to the registered service.

Note   Services.exe helps prevent a device failure resulting from a service crash, but it does not prevent a resulting crash in another unrelated service. All services should be properly debugged prior to deployment.

In This Section

Activating a Service Programmatically
Provides information about how to activate a service programmatically by calling ActivateService.
Registering a Service Programmatically
Provides information about how to register a service programmatically by calling RegisterService.
Controlling a Running Service
Provides information about how to control a service through various IOCTLs.
Stopping a Running Service
Provides information about how to stop a service programmatically by calling DeregisterService.
Configuring Services.exe to Load a Standalone Service
Provides information about how to configure Services.exe to load a service in standalone mode
Using Services.exe from the Command Line
Provides information about the command line options available for Services.exe.
Super Services
Provides information about a super service that is designed to allow all ports to be monitored by Services.exe.

See Also

Networking | Services.exe


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker