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

The following table shows the Services.exe IOCTLS with a description of the purpose of each.

Programming element Description

IOCTL_SERVICE_CONNECTION

This IOCTL provides a pointer to the accepted Windows socket.

IOCTL_SERVICE_CONSOLE

This IOCTL turns a service's console on or off, depending on whether an "on" or "off" string is passed as an input parameter.

IOCTL_SERVICE_CONTROL

This IOCTL contains information specific to a certain service passed by the calling application.

IOCTL_SERVICE_DEBUG

This IOCTL sets the debug state of a service.

IOCTL_SERVICE_DEREGISTER_SOCKADDR

This IOCTL is passed as an input parameter along with the sockaddrstructure when Services.exe calls the xxx_IOControl (Services.exe)function to register a service.

IOCTL_SERVICE_INSTALL

This IOCTL causes a service to configure the registry for the service to be automatically loaded on system initialization.

IOCTL_SERVICE_NOTIFY_ADDR_CHANGE

This IOCTL is passed as an input parameter along when Services.exe notifies every running service of address changes in the system.

IOCTL_SERVICE_REFRESH

This IOCTL causes a service to refresh its configuration parameters.

IOCTL_SERVICE_REGISTER_SOCKADDR

This IOCTL is passed as an input parameter along with the sockaddrstructure when Services.exe calls the xxx_IOControl (Services.exe)function to register a service.

IOCTL_SERVICE_START

This IOCTL starts a service that was previously in the start state.

IOCTL_SERVICE_STARTED

This IOCTL is sent to the service to indicate that all super service ports that are automatically created on service startup have been opened.

IOCTL_SERVICE_STATUS

This IOCTL returns the current running state of the service.

IOCTL_SERVICE_STOP

This IOCTL stops the service.

IOCTL_SERVICE_UNINSTALL

This IOCTL causes a service to remove registry configuration for its auto-loading on system initialization.

IOCTL_SERVICE_UNLOAD

This IOCTL is deprecated and should never be used. To cause a service to be unloaded, use the DeregisterServicefunction instead.

IOCTL_SERVICE_CALLBACK_FUNCTIONS

This IOCTL provides a pointer to a callback function.

IOCTL_SERVICE_CALLBACK_FUNCTIONS

This IOCTL provides a pointer to a callback function.

IOCTL_SERVICE_COMMAND_LINE_PARAMS

This IOCTL indicates that arguments from the Services.exe command line are being passed to the service.