Windows Dev Center

ENUM_SERVICE_STATUS_PROCESS structure

Contains the name of a service in a service control manager database and information about the service. It is used by the EnumServicesStatusEx function.

Syntax


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

Members

lpServiceName

The name of a service in the 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

A display name that can be used by service control programs, such as Services in Control Panel, 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

A SERVICE_STATUS_PROCESS structure that contains status information for the lpServiceName service.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winsvc.h (include Windows.h)

Unicode and ANSI names

ENUM_SERVICE_STATUS_PROCESSW (Unicode) and ENUM_SERVICE_STATUS_PROCESSA (ANSI)

See also

EnumServicesStatusEx
SERVICE_STATUS_PROCESS

 

 

Community Additions

ADD
Show:
© 2015 Microsoft