summaryrefslogtreecommitdiff
path: root/general/WinHEC 2017 Lab/Toaster Driver/Service/SampleService.h
diff options
context:
space:
mode:
Diffstat (limited to 'general/WinHEC 2017 Lab/Toaster Driver/Service/SampleService.h')
-rw-r--r--general/WinHEC 2017 Lab/Toaster Driver/Service/SampleService.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/general/WinHEC 2017 Lab/Toaster Driver/Service/SampleService.h b/general/WinHEC 2017 Lab/Toaster Driver/Service/SampleService.h
deleted file mode 100644
index 04621b3e..00000000
--- a/general/WinHEC 2017 Lab/Toaster Driver/Service/SampleService.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//*********************************************************
-//
-// Copyright (c) Microsoft. All rights reserved.
-// This code is licensed under the MIT License (MIT).
-// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
-// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
-// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
-// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
-//
-//*********************************************************
-
-// 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.
-
-#pragma once
-
-#include "ServiceBase.h"
-
-class CSampleService : public CServiceBase
-{
-public:
-
- CSampleService(PWSTR pszServiceName,
- BOOL fCanStop = TRUE,
- BOOL fCanShutdown = TRUE,
- BOOL fCanPauseContinue = FALSE);
- void ConsoleRun();
- bool IsConsoleRun()
- {
- return m_runningInConsole;
- }
- void WriteEventLogEntry(PWSTR pszMessage, BYTE bLevel) override;
- virtual ~CSampleService(void);
-
-protected:
-
- virtual void OnStart(DWORD dwArgc, PWSTR *pszArgv) override;
- virtual void OnStop() override;
-
-
-private:
- PTP_WORK m_work = nullptr;
- bool m_runningInConsole = false;
-}; \ No newline at end of file