Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
ReadFile
WriteFile
Running a service in standalone mode poses the following limitations:
- 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,
GetServiceHandleor any of the other functions exposed by
Services.exe. The service will not be listed when "services list"
is run.
- A number of the services that are shipped with Windows Embedded
CE 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
ReadFileand
WriteFilefunctions. Web server will not work as a standalone
process because other services depend on running in the same memory
space as the Web server.
- Windows Embedded CE 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 Embedded CE.
See Also
Tasks
Configuring Services.exe to Load a Standalone ServiceReference
GetServiceHandleOther Resources
CreateFileReadFile
WriteFile