summaryrefslogtreecommitdiff
path: root/windows/ZeroTierOne/ZeroTierOneService.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 /windows/ZeroTierOne/ZeroTierOneService.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 'windows/ZeroTierOne/ZeroTierOneService.cpp')
-rw-r--r--windows/ZeroTierOne/ZeroTierOneService.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/windows/ZeroTierOne/ZeroTierOneService.cpp b/windows/ZeroTierOne/ZeroTierOneService.cpp
new file mode 100644
index 00000000..f146ce28
--- /dev/null
+++ b/windows/ZeroTierOne/ZeroTierOneService.cpp
@@ -0,0 +1,47 @@
+/****************************** Module Header ******************************\
+* Module Name: SampleService.cpp
+* Project: CppWindowsService
+* Copyright (c) Microsoft Corporation.
+*
+* Provides a sample service class that derives from the service base class -
+* CServiceBase. The sample service logs the service start and stop
+* information to the Application event log, and shows how to run the main
+* function of the service in a thread pool worker thread.
+*
+* This source is subject to the Microsoft Public License.
+* See http://www.microsoft.com/en-us/openness/resources/licenses.aspx#MPL.
+* All other rights reserved.
+*
+* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
+* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
+* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
+\***************************************************************************/
+
+#pragma region Includes
+#include "ZeroTierOneService.h"
+#pragma endregion
+
+ZeroTierOneService::ZeroTierOneService() :
+ CServiceBase(ZT_SERVICE_NAME,TRUE,TRUE,TRUE)
+{
+}
+
+ZeroTierOneService::~ZeroTierOneService(void)
+{
+}
+
+void ZeroTierOneService::OnStart(DWORD dwArgc, LPSTR *lpszArgv)
+{
+}
+
+void ZeroTierOneService::OnStop()
+{
+}
+
+void ZeroTierOneService::OnPause()
+{
+}
+
+void ZeroTierOneService::OnContinue()
+{
+}