Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 3.38 KB

ns-winsvc-service_failure_actions_flag.md

File metadata and controls

85 lines (65 loc) · 3.38 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NS:winsvc._SERVICE_FAILURE_ACTIONS_FLAG
SERVICE_FAILURE_ACTIONS_FLAG (winsvc.h)
Contains the failure actions flag setting of a service. This setting determines when failure actions are to be executed.
*LPSERVICE_FAILURE_ACTIONS_FLAG
LPSERVICE_FAILURE_ACTIONS_FLAG
LPSERVICE_FAILURE_ACTIONS_FLAG structure pointer
SERVICE_FAILURE_ACTIONS_FLAG
SERVICE_FAILURE_ACTIONS_FLAG structure
base.service_failure_actions_flag
winsvc/LPSERVICE_FAILURE_ACTIONS_FLAG
winsvc/SERVICE_FAILURE_ACTIONS_FLAG
base\service_failure_actions_flag.htm
security
49736b26-9565-4d56-abcd-1585b692ff12
12/05/2018
*LPSERVICE_FAILURE_ACTIONS_FLAG, LPSERVICE_FAILURE_ACTIONS_FLAG, LPSERVICE_FAILURE_ACTIONS_FLAG structure pointer, SERVICE_FAILURE_ACTIONS_FLAG, SERVICE_FAILURE_ACTIONS_FLAG structure, base.service_failure_actions_flag, winsvc/LPSERVICE_FAILURE_ACTIONS_FLAG, winsvc/SERVICE_FAILURE_ACTIONS_FLAG
winsvc.h
Windows.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
SERVICE_FAILURE_ACTIONS_FLAG, *LPSERVICE_FAILURE_ACTIONS_FLAG
19H1
_SERVICE_FAILURE_ACTIONS_FLAG
winsvc/_SERVICE_FAILURE_ACTIONS_FLAG
LPSERVICE_FAILURE_ACTIONS_FLAG
winsvc/LPSERVICE_FAILURE_ACTIONS_FLAG
SERVICE_FAILURE_ACTIONS_FLAG
winsvc/SERVICE_FAILURE_ACTIONS_FLAG
c++
APIRef
kbSyntax
HeaderDef
Winsvc.h
SERVICE_FAILURE_ACTIONS_FLAG

SERVICE_FAILURE_ACTIONS_FLAG structure

-description

Contains the failure actions flag setting of a service. This setting determines when failure actions are to be executed.

-struct-fields

-field fFailureActionsOnNonCrashFailures

If this member is TRUE and the service has configured failure actions, the failure actions are queued if the service process terminates without reporting a status of SERVICE_STOPPED or if it enters the SERVICE_STOPPED state but the dwWin32ExitCode member of the SERVICE_STATUS structure is not ERROR_SUCCESS (0).

If this member is FALSE and the service has configured failure actions, the failure actions are queued only if the service terminates without reporting a status of SERVICE_STOPPED.

This setting is ignored unless the service has configured failure actions. For information on configuring failure actions, see ChangeServiceConfig2.

-remarks

The change takes effect the next time the system is started.

It can be useful to set this flag if your service has common failure paths where is it possible that the service could recover.

-see-also

ChangeServiceConfig2

QueryServiceConfig2

SERVICE_FAILURE_ACTIONS