Platform SDK: DLLs, Processes, and Threads

ENUM_SERVICE_STATUS_PROCESS

The ENUM_SERVICE_STATUS_PROCESS structure is used by the EnumServicesStatusEx function to return the name of a service in a service control manager database. The structure also returns information about the service.

typedef struct _ENUM_SERVICE_STATUS_PROCESS {
  LPTSTR  lpServiceName;
  LPTSTR  lpDisplayName;
  SERVICE_STATUS_PROCESS  ServiceStatusProcess;
} ENUM_SERVICE_STATUS_PROCESS, *LPENUM_SERVICE_STATUS_PROCESS;

Members

lpServiceName
Pointer to a null-terminated string that names a service in a service control manager database. The maximum string length is 256 characters. The service control manager database preserves the case of the characters, but service name comparisons are always case insensitive. A slash (/), backslash (\), comma, and space are invalid service name characters.
lpDisplayName
Pointer to a null-terminated string that a program, such as the Services program in Control Panel, uses to identify the service. This string has a maximum length of 256 characters. The case is preserved in the service control manager. Display name comparisons are always case-insensitive.
ServiceStatusProcess
Specifies a SERVICE_STATUS_PROCESS structure in which status information about the lpServiceName service is returned.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Winsvc.h; include Windows.h.
  Unicode: Declared as Unicode and ANSI structures.

See Also

Services Overview, Service Structures, EnumServicesStatusEx, SERVICE_STATUS_PROCESS