SC_ACTION_TYPE

The SC_ACTION_TYPE enumeration specifies the actions that the SCM can perform.

typedef  enum 
{
  SC_ACTION_NONE = 0,
  SC_ACTION_RESTART = 1,
  SC_ACTION_REBOOT = 2,
  SC_ACTION_RUN_COMMAND = 3
}SC_ACTION_TYPE;

Constants

  • SC_ACTION_NONE
    No action.

  • SC_ACTION_RESTART
    Restart the computer.

  • SC_ACTION_REBOOT
    Reboot the service.

  • SC_ACTION_RUN_COMMAND
    Run a command.