OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
WindowsServiceManager.h
Go to the documentation of this file.
1#pragma once
2#define NOMINMAX //Supress windows macros min max
3#define WIN32_LEAN_AND_MEAN
4#include <windows.h>
5
6#include <string>
7
9{
10public:
11 WindowsServiceManager(const std::string& serviceName);
13
14 std::string getMongoDBServerBinPath();
15
16 void startService();
17 void stopService();
18 void restartService();
19private:
20 SC_HANDLE m_scManager;
21 SC_HANDLE m_service;
22};
Definition WindowsServiceManager.h:9
~WindowsServiceManager()
Definition WindowsServiceManager.cpp:35
std::string getMongoDBServerBinPath()
Definition WindowsServiceManager.cpp:42
void startService()
Definition WindowsServiceManager.cpp:80
void restartService()
Definition WindowsServiceManager.cpp:72
WindowsServiceManager(const std::string &serviceName)
Definition WindowsServiceManager.cpp:9
void stopService()
Definition WindowsServiceManager.cpp:116