Limitations to Standalone Services

Running a service in standalone mode poses the following limitations:

  1. Interprocess communication mechanisms provided by Services.exe will not work with services that are loaded in standalone processes. An application cannot access a standalone service by calling CreateFile, GetServiceHandle or any of the other functions exposed by Services.exe. The service will not be listed when "services list" is run.
  2. A number of the services that are shipped with Windows CE .NET cannot run in standalone mode. For example, Telnet server will not work as a standalone process because it relies on the instances of cmd.exe that it spawns to be able to use the ReadFile and WriteFile functions. Web server will not work as a standalone process because other services depend on running in the same memory space as the Web server.
  3. Windows CE .NET is limited to 32 processes. Each standalone service consumes one of these processes. A standalone process also requires more resources than a service loaded in the non-standalone mode, because processes are much more memory-consuming than threads on Windows CE.

See Also

CreateFile | GetServiceHandle | ReadFile | WriteFile | Configuring Services.exe to Load a Standalone Service

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.