diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-02-05 16:37:50 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-02-05 16:37:50 -0800 |
commit | d5b50ee46621d4cdef5504419235383699873048 (patch) | |
tree | e0c8a0aede3b17692d6078a5b7ea4e425fa09c6b /main.cpp | |
parent | 8031fe00c7093ec4b6753594df55edc85e4024d5 (diff) | |
download | infinitytier-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.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 { // --------------------------------------------------- |