This topic has not yet been rated - Rate this topic

ENUM_SERVICE_STATUS_PROCESS structure

Applies to: desktop apps only

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

Minimum supported server

Windows Server 2003

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

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ