What are NT Services?


Part of what makes this a confusing question is that the word "services" is used in several distinct senses:

  1. People often refer to "system services" or "kernel services." These are features and functions provided by the operating system for the use of applications. Our "services" will make extensive use of these, but this is not what we're talking about.
  2. Driver services - we're not going to focus on these, but they can be very important (MetaFrame, for instance)
  3. Win32 services - these are what we're interested in

When you ask most people who work with NT to describe services, you'll get the generic, common understanding. This is good enough most of the time, it is based on generalities, and none of them apply to all services:

  1. Started automatically
  2. Always running
  3. Don't depend on users
  4. Even Microsoft contributes to the misunderstandings:

So let's offer a more precise definition: a Win32 service is really just a Win32 executable that has the following characteristics:

  1. Lifetime is controlled by SCM (Service Control Manager)
  2. Has its own NT login session, or shares one with another service
  3. Implements a set of service-specific functions

Back to the main Services T3 Page
Back (Introduction to NT Architecture) Next (What are NT Services Used For?)

This page is maintained by Peyton Engel.
Last modified 24 May 1999