From 8a7486577afb259c19b82e4e73cb8b508cd2f162 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 6 Feb 2014 22:06:27 -0800 Subject: Windows service work, remove old installer... not sure exactly what we're going to use. --- windows/ZeroTierOne/ServiceInstaller.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'windows/ZeroTierOne/ServiceInstaller.h') 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 // // 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); -- cgit v1.2.3