The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CServiceConfigData Class Reference

Collaboration diagram for CServiceConfigData:

List of all members.

Public Types

typedef std::vector
< SC_ACTION > 
FailureActions

Public Member Functions

 CServiceConfigData ()
void AddFailureAction (SC_ACTION_TYPE type, JetByteTools::Milliseconds delay)
 Adds a failure action. There's a hard coded limit of 3 failure actions in the function but this is purely because it's hard to manage services using the services control snap-in if you have more than 3 failure actions. The upper limit is actually somewhere around 900. You can comment the lower limit out if you actually DO require more than 3 failure actions. Although the delay is specified and stored in ms the service control snap-in displays in hours and rounds down to the nearest hour.
const FailureActionsGetFailureActions () const
bool FailureRequiresRestart () const
 Returns true if any of the failure actions are SC_ACTION_RESTART.
bool FailureRequiresReboot () const
 Returns true if any of the failure actions are SC_ACTION_REBOOT, if so the account doing the installation requires the SE_SHUTDOWN_NAME privilege.

Public Attributes

JetByteTools::Core::_tstring displayName
JetByteTools::Core::_tstring description
JetByteTools::Core::_tstring dependencies
ServiceTypes::StartupType startupType
ServiceTypes::ErrorHandling errorHandling
bool interactive
bool supportsPerformanceCounters
DWORD controlsAccepted
DWORD preShutdownTimeout
JetByteTools::Core::_tstring accountName
JetByteTools::Core::_tstring password
JetByteTools::Core::_tstring requiredPrivileges
ServiceTypes::ServiceSIDTypes serviceSID
bool enableFailureActions
JetByteTools::Seconds failureActionResetPeriod
 How long the service must be running successfully for the failure count to be reset. Although this is specified in seconds the services control snap-in only displays in days and rounds down to the nearest day.
JetByteTools::Core::_tstring failureActionRebootMessage
JetByteTools::Core::_tstring failureActionCommandLine
bool serviceFailureActionsOnNonCrash


Member Typedef Documentation

typedef std::vector<SC_ACTION> FailureActions


Constructor & Destructor Documentation


Member Function Documentation

void AddFailureAction ( SC_ACTION_TYPE  type,
JetByteTools::Milliseconds  delay 
)

Adds a failure action. There's a hard coded limit of 3 failure actions in the function but this is purely because it's hard to manage services using the services control snap-in if you have more than 3 failure actions. The upper limit is actually somewhere around 900. You can comment the lower limit out if you actually DO require more than 3 failure actions. Although the delay is specified and stored in ms the service control snap-in displays in hours and rounds down to the nearest hour.

const CServiceConfigData::FailureActions & GetFailureActions (  )  const

bool FailureRequiresRestart (  )  const

Returns true if any of the failure actions are SC_ACTION_RESTART.

bool FailureRequiresReboot (  )  const

Returns true if any of the failure actions are SC_ACTION_REBOOT, if so the account doing the installation requires the SE_SHUTDOWN_NAME privilege.


Member Data Documentation

How long the service must be running successfully for the failure count to be reset. Although this is specified in seconds the services control snap-in only displays in days and rounds down to the nearest day.


Generated on Sun Sep 12 19:09:58 2021 for The Server Framework - v7.4 by doxygen 1.5.3