diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-03-25 07:30:23 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-25 07:30:23 -0400 |
commit | 874f48bc82a5d73695171287a8397d037b471547 (patch) | |
tree | 8db94233f02c113f2f0a91febfba55a3f6beeb79 /src/daemonizer/windows_service.h | |
parent | BerkeleyDB implementation of BlockchainDB seems to be working! (diff) | |
parent | Merge upstream updates into blockchain branch (diff) | |
download | monero-874f48bc82a5d73695171287a8397d037b471547.tar.xz |
update berkeleydb branch to blockchain branch
Diffstat (limited to 'src/daemonizer/windows_service.h')
-rw-r--r-- | src/daemonizer/windows_service.h | 36 |
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 |