现在的位置: 首页 > 综合 > 正文

ENUM_SERVICE_STATUS

2013年10月23日 ⁄ 综合 ⁄ 共 1360字 ⁄ 字号 评论关闭

ENUM_SERVICE_STATUS

The ENUM_SERVICE_STATUS structure is used by the EnumDependentServices and EnumServicesStatus functions to return the name of a service in a service control manager database and to return information about that service.

typedef struct _ENUM_SERVICE_STATUS {
LPTSTR lpServiceName;
LPTSTR lpDisplayName;
SERVICE_STATUS ServiceStatus; } ENUM_SERVICE_STATUS,
*LPENUM_SERVICE_STATUS;

Members

lpServiceName
Pointer to a null-terminated string that specifies 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
Pointer to a null-terminated string that specifies 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 name is case-preserved in the service control manager. Display name comparisons are always case-insensitive.
ServiceStatus
A SERVICE_STATUS structure that contains status information for the lpServiceName service.

Requirements

Client Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header

Declared in Winsvc.h; include Windows.h.

Unicode

Implemented as ENUM_SERVICE_STATUSW (Unicode) and ENUM_SERVICE_STATUSA (ANSI).

抱歉!评论已关闭.