diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-02-06 22:06:27 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2014-02-06 22:06:27 -0800 |
| commit | 8a7486577afb259c19b82e4e73cb8b508cd2f162 (patch) | |
| tree | dc36ac222fecb598972ad4a1e47454fa9099fb3a /windows/ZeroTierOne/ServiceInstaller.h | |
| parent | 6d17993eb69455a8a47013e9c6f110863f7dbb35 (diff) | |
| download | infinitytier-8a7486577afb259c19b82e4e73cb8b508cd2f162.tar.gz infinitytier-8a7486577afb259c19b82e4e73cb8b508cd2f162.zip | |
Windows service work, remove old installer... not sure exactly what we're going to use.
Diffstat (limited to 'windows/ZeroTierOne/ServiceInstaller.h')
| -rw-r--r-- | windows/ZeroTierOne/ServiceInstaller.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/windows/ZeroTierOne/ServiceInstaller.h b/windows/ZeroTierOne/ServiceInstaller.h index 1f007c05..ee9856df 100644 --- a/windows/ZeroTierOne/ServiceInstaller.h +++ b/windows/ZeroTierOne/ServiceInstaller.h @@ -16,6 +16,7 @@ #pragma once +#include <string> // // FUNCTION: InstallService @@ -38,7 +39,8 @@ // NOTE: If the function fails to install the service, it prints the error // in the standard output stream for users to diagnose the problem. // -void InstallService(PSTR pszServiceName, +// modified for ZT1 to return an error or empty string on success +std::string InstallService(PSTR pszServiceName, PSTR pszDisplayName, DWORD dwStartType, PSTR pszDependencies, @@ -58,4 +60,5 @@ void InstallService(PSTR pszServiceName, // NOTE: If the function fails to uninstall the service, it prints the // error in the standard output stream for users to diagnose the problem. // -void UninstallService(PSTR pszServiceName);
\ No newline at end of file +// Also modified to return rather than print errors +std::string UninstallService(PSTR pszServiceName); |
