aboutsummaryrefslogtreecommitdiff
path: root/src/daemonizer/windows_service.h
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-03-25 05:56:36 -0400
committerThomas Winget <tewinget@gmail.com>2015-03-25 05:56:36 -0400
commit5c0bc0050ccfd579ed75be384e928e0165d6b2ce (patch)
tree7bce2200f19b05448cb719b54037a7c2c82d6bab /src/daemonizer/windows_service.h
parentMerges #36 (diff)
parentMerge pull request #243 (diff)
downloadmonero-5c0bc0050ccfd579ed75be384e928e0165d6b2ce.tar.xz
Merge upstream updates into blockchain branch
Diffstat (limited to '')
-rw-r--r--src/daemonizer/windows_service.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/daemonizer/windows_service.h b/src/daemonizer/windows_service.h
new file mode 100644
index 000000000..11f5fdcdc
--- /dev/null
+++ b/src/daemonizer/windows_service.h
@@ -0,0 +1,36 @@
+#pragma once
+
+#ifdef WIN32
+
+#undef UNICODE
+#undef _UNICODE
+
+#include <string>
+#include <windows.h>
+
+namespace windows
+{
+ bool check_admin(bool & result);
+
+ bool ensure_admin(
+ std::string const & arguments
+ );
+
+ bool install_service(
+ std::string const & service_name
+ , std::string const & arguments
+ );
+
+ bool uninstall_service(
+ std::string const & service_name
+ );
+
+ bool start_service(
+ std::string const & service_name
+ );
+
+ bool stop_service(
+ std::string const & service_name
+ );
+}
+#endif