This static class make the necessary operations to run the application as a demon (or Windows service). More...
#include <DcDemon.h>
Static Public Member Functions | |
| static void | Install () |
| Install whatever it need to so it can run as demon. | |
| static void | Uninstall () |
| Uninstall the demon/service from OS. | |
| static bool | StartPending () |
| Start the demon/service in a pending state. | |
| static bool | MarkRun () |
| Mark the demon/service as running. | |
| static bool | Stop (int code) |
| Stop the run of the demon/service. | |
| static void | RunMain () |
| Call the ProgramMain function to run as a demon/service. | |
| static bool | IsRunning () |
| Returns True if the demon/service is running. | |
This static class make the necessary operations to run the application as a demon (or Windows service).
Definition at line 36 of file DcDemon.h.
| void CdcDemon::Install | ( | ) | [static] |
Install whatever it need to so it can run as demon.
This function is been called when "beesnest install" is called.
Definition at line 50 of file DcDemon.cpp.
| static bool CdcDemon::IsRunning | ( | ) | [inline, static] |
| bool CdcDemon::MarkRun | ( | ) | [static] |
Mark the demon/service as running.
Definition at line 144 of file DcDemon.cpp.
| void CdcDemon::RunMain | ( | ) | [static] |
Call the ProgramMain function to run as a demon/service.
This function is been called when beesnest is called w/o any arguments.
Definition at line 162 of file DcDemon.cpp.
| bool CdcDemon::StartPending | ( | ) | [static] |
Start the demon/service in a pending state.
This function is been called by Main.cpp before Start is called.
Definition at line 124 of file DcDemon.cpp.
| bool CdcDemon::Stop | ( | int | code ) | [static] |
Stop the run of the demon/service.
Definition at line 151 of file DcDemon.cpp.
| void CdcDemon::Uninstall | ( | ) | [static] |
Uninstall the demon/service from OS.
This function is been called when "beesnest uninstall" is called.
Definition at line 84 of file DcDemon.cpp.
1.7.2