Services Start Code

G

Guest

Greetings

I have been looking for a list of the numeric start codes used in the
Registry in reference to services. For example, in the registry under (pick
your service) there is the DependOnGroup multiword, Description string, etc.
Under the Start DWORD is a value relating to Automatic, Manual or Disabled. I
have ascertained that a DWORD of 2 is auto, 3 is manual and 4 is disabled.

Is this correct, and are there other codes?

TIA
CapWx
 
A

Alec S.

CapWx said:
I have been looking for a list of the numeric start codes used in the
Registry in reference to services. For example, in the registry under (pick
your service) there is the DependOnGroup multiword, Description string, etc.
Under the Start DWORD is a value relating to Automatic, Manual or Disabled. I
have ascertained that a DWORD of 2 is auto, 3 is manual and 4 is disabled.

Is this correct, and are there other codes?


Hehe, that's a real pain in the butt isn't it. :)

They are all defined in the include files if you're a programmer. If not, then fortunately, I've written a service controller so
I've got them right here. They are:

ServiceTypes:
0,"own", "The service runs in its own process"
1, "share", "The service shares a process with other services"
2, "interact", "Service able to interact with the desktop"
3, "kernel", "Is a driver level service"
4, "filesys", "File system driver service"
5, "rec", not sure

StartTypes:
0, "boot", "Service is automatically started by the system loader (only for driver services)"
1, "system", "Service is started by the IoInitSystem (only for driver services)"
2, "auto", "Service is automatically started at system startup"
3, "demand", "Service is started when specifically requested to start"
4, "disabled", "Service is disabled and cannot start"

ErrorTypes:
0, "ignore", "Errors are logged but do not abort service startup"
1, "normal", "Errors are logged and a message box is displayed but service startup continues"
2, "severe", "Errors are logged and the last good configuration is used to start the service (restarting if requried)"
3, "critical", "Errors are logged (if possible), and the last good configuration is used if not already, otherwise startup is
aborted"

TagTypes:
0, "yes", not sure
1, "no", not sure

ObjTypes:
0, 0, "LocalSystem", "Runs under the system's permissions"
1, 0, "AccountName", "Runs under the current user's permissions"
2, 0, "ObjectName", not sure
};



HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top