ServiceEnumInfo (Compact 2013)
3/26/2014
This structure contains information about a particular service running on the device.
Syntax
Typedef struct_ServiceEnumInfo {
WCHAR szPrefix[6];
WCHAR szDllName;
HANDLE hServiceHandle;
DWORD dwServiceState;
} ServiceEnumInfo;
Members
- szPrefix
String that contains the prefix of the device in the form XXXN:, where XXX is the prefix registry value read during ActivateService, and N is the index number.
- szDllName
String that contains the name of the DLL that contains the service.
hServiceHandle
Service handle.Note
This member is always NULL.
dwServiceState
Specifies the current state of the service. The following table shows the service states defined by Windows Embedded Compact.Value
Description
SERVICE_STATE_OFF = 0
The service is turned off.
SERVICE_STATE_ON = 1
The service is turned on.
SERVICE_STATE_STARTING_UP = 2
The service is in the process of starting up.
SERVICE_STATE_SHUTTING_DOWN = 3
The service is in the process of shutting down.
SERVICE_STATE_UNLOADING = 4
The service is in the process of unloading.
SERVICE_STATE_UNINITIALIZED = 5
The service is not uninitialized.
SERVICE_STATE_UNKNOWN = 0xffffffff
The state of the service is unknown.
Remarks
The service itself and not Servicesd.exe keeps track of the current state. Servicesd.exe only queries for state information during calls to EnumServices. It is possible that a service may return a value not listed in the previous table, although you are strongly encouraged to use existing Windows Embedded Compact conventions.
Requirements
Header |
service.h |
See Also
Reference
Servicesd.exe Structures
ActivateService
EnumServices