mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 11:12:22 -04:00
Daemonize changes pulled in -- daemon builds
many RPC functions added by the daemonize changes (and related changes on the upstream dev branch that were not merged) were commented out (apart from return). Other than that, this *should* work...at any rate, it builds, and that's something.
This commit is contained in:
parent
6e5797dc11
commit
9193d6fb5b
39 changed files with 3672 additions and 387 deletions
36
src/daemonizer/windows_service.h
Normal file
36
src/daemonizer/windows_service.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue