Windows Service初識

小弟季義欽發表於2013-08-07

Form Wikipedia:http://en.wikipedia.org/wiki/Windows_service

InWindows NToperating systems, aWindows serviceis acomputer programthatoperates in the background.[1]It is similar in concept to aUnixdaemon.[1]A Windows service must conform to the interface rules and protocols of theService Control Manager, the component responsible for managing Windows services.[2]

Windows services can be configured to start when the operating system is started and run in the background as long as Windows is running. Alternatively, they can be started manually or by an event. Windows NT operating systemsinclude numerous serviceswhich run in context of threeuser accounts:System,Network ServiceandLocal Service. These Windows components are often associated withHost Process for Windows Services. Because Windows services operate in the context of their own dedicated user accounts, they can operate when a user is not logged on.

Prior toWindows Vista, services installed as an "interactive service" could interact with Windowsdesktopand show agraphical user interface. In Windows Vista, however, interactive services are deprecated and may not operate properly, as a result ofWindows Service hardening.[3][4]