SERVICE_TRIGGER_INFO structure
Applies to: desktop apps only
Contains trigger event information for a service. This structure is used by the ChangeServiceConfig2 and QueryServiceConfig2 functions.
Syntax
typedef struct _SERVICE_TRIGGER_INFO {
DWORD cTriggers;
PSERVICE_TRIGGER pTriggers;
PBYTE pReserved;
} SERVICE_TRIGGER_INFO, *PSERVICE_TRIGGER_INFO;
Members
- cTriggers
-
The number of triggers in the array of SERVICE_TRIGGER structures pointed to by the pTriggers member.
If this member is 0 in a SERVICE_TRIGGER_INFO structure passed to ChangeServiceConfig2, all previously configured triggers are removed from the service. If the service has no triggers configured, ChangeServiceConfig2 fails with ERROR_INVALID_PARAMETER.
- pTriggers
-
A pointer to an array of SERVICE_TRIGGER structures that specify the trigger events for the service. If the cTriggers member is 0, this member is not used.
- pReserved
-
This member is reserved and must be NULL.
Requirements
|
Minimum supported client | Windows 7 |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 2/7/2012