From 7ca6f6e2e9bd5f7a68c878a60a296af1a3636c6f Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Thu, 30 Nov 2017 22:46:00 +0100 Subject: allow to diable UAC dialog - remove CMake option `WIN_UAC` - spawn UAC dialog via restarting xmr-miner with administrator right - allow to disable UAC with `--noUAC` - update documentation - remove usage section with help message (output depends on OS) --- xmrstak/cli/cli-miner.cpp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'xmrstak/cli/cli-miner.cpp') diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index e32733b..087d3b6 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -66,6 +66,9 @@ void help() cout<<" -v, --version show version number"<print_msg(L0, "Parameter unknown '%s'",argv[i]); @@ -432,6 +472,11 @@ int main(int argc, char *argv[]) } } +#ifdef _WIN32 + if(uacDialog) + UACDialog(argv[0]); +#endif + // check if we need a guided start if(!configEditor::file_exist(params::inst().configFile)) do_guided_config(userSetPasswd); -- cgit v1.1