Partager via


2.2.10 ENUM_SERVICE_STATUSA

The ENUM_SERVICE_STATUSA structure defines the name and status of a service in an SCM database and returns information about the service. String values are stored in ANSI.

 typedef struct _ENUM_SERVICE_STATUSA {
   LPSTR lpServiceName;
   LPSTR lpDisplayName;
   SERVICE_STATUS ServiceStatus;
 } ENUM_SERVICE_STATUSA,
  *LPENUM_SERVICE_STATUSA;

lpServiceName: A pointer to a null-terminated string that names a service in an SCM database.

The forward slash, back slash, comma, and space characters are illegal in service names.

lpDisplayName: A pointer to a null-terminated string that user interface programs use to identify the service.

ServiceStatus: A SERVICE_STATUS (section 2.2.47) structure that contains status information.