SERVICE_TRIGGER_INFO structure
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 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
See also