summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-02-05 16:37:50 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-02-05 16:37:50 -0800
commitd5b50ee46621d4cdef5504419235383699873048 (patch)
treee0c8a0aede3b17692d6078a5b7ea4e425fa09c6b /main.cpp
parent8031fe00c7093ec4b6753594df55edc85e4024d5 (diff)
downloadinfinitytier-d5b50ee46621d4cdef5504419235383699873048.tar.gz
infinitytier-d5b50ee46621d4cdef5504419235383699873048.zip
C++ service base stuff taken from MS public domain example project and modified slightly.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 97b01c60..2d94efd7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -42,6 +42,8 @@
#include <tchar.h>
#include <wchar.h>
#include <lmcons.h>
+#include "windows/ZeroTierOne/ServiceInstaller.h"
+#include "windows/ZeroTierOne/ServiceBase.h"
#else
#include <unistd.h>
#include <pwd.h>
@@ -93,6 +95,10 @@ static void printHelp(const char *cn,FILE *out)
fprintf(out," -c<port> - Bind to this port for local control packets"ZT_EOL_S);
fprintf(out," -q - Send a query to a running service (zerotier-cli)"ZT_EOL_S);
fprintf(out," -i - Run idtool command (zerotier-idtool)"ZT_EOL_S);
+#ifdef __WINDOWS__
+ fprintf(out," -I - Install Windows service"ZT_EOL_S);
+ fprintf(out," -R - Uninstall Windows service"ZT_EOL_S);
+#endif
}
namespace ZeroTierCLI { // ---------------------------------------------------