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

ENUM_SERVICE_STATUS_PROCESS

2013年10月31日 ⁄ 综合 ⁄ 共 1389字 ⁄ 字号 评论关闭

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 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 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

Client Requires Windows XP or Windows 2000 Professional.
Server Requires Windows Server 2003 or Windows 2000 Server.
Header

Declared in Winsvc.h; include Windows.h.

Unicode

Implemented as ENUM_SERVICE_STATUS_PROCESSW (Unicode) and ENUM_SERVICE_STATUS_PROCESSA (ANSI).

抱歉!评论已关闭.