diff options
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/winService.cpp | 25 | ||||
-rw-r--r-- | src/win32/winService.h | 8 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/win32/winService.cpp b/src/win32/winService.cpp index f796fcf..e39fe56 100644 --- a/src/win32/winService.cpp +++ b/src/win32/winService.cpp @@ -169,4 +169,29 @@ void WinService::reportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode) SetServiceStatus(status_handle_, &status_);
}
+void WinService::initPrivs(std::string const& username, std::string const& groupname)
+{
+// nothing here
+}
+
+void WinService::dropPrivs()
+{
+// nothing here
+}
+
+void WinService::chroot(std::string const& dir)
+{
+// nothing here
+}
+
+void WinService::daemonize()
+{
+// nothing here
+}
+
+bool WinService::isDaemonized()
+{
+ return true;
+}
+
#endif
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 |