summaryrefslogtreecommitdiff
path: root/src/win32/winService.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-02-06 18:12:12 +0000
committerChristian Pointner <equinox@anytun.org>2010-02-06 18:12:12 +0000
commit346ef768b1b911a89e3d9bc1b03b442fd85d3739 (patch)
treeb9ff225ea1093c155adcac548a1387fd5bcd860e /src/win32/winService.h
parentremoved NO_EXEC (diff)
introduced posixDaemon as DaemonService for posix targets
some dependency cleanups
Diffstat (limited to 'src/win32/winService.h')
-rw-r--r--src/win32/winService.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/win32/winService.h b/src/win32/winService.h
index ed05367..ecba55d 100644
--- a/src/win32/winService.h
+++ b/src/win32/winService.h
@@ -52,6 +52,12 @@ public:
void reportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode);
int handleCtrlSignal(int sig, const std::string& msg);
+ void initPrivs(std::string const& username, std::string const& groupname);
+ void dropPrivs();
+ void chroot(std::string const& dir);
+ void daemonize();
+ bool isDaemonized();
+
private:
WinService() {};
~WinService() {};
@@ -62,6 +68,8 @@ private:
SERVICE_STATUS_HANDLE status_handle_;
};
+typedef class WinService DaemonService;
+
#endif
#endif