cmd message after privileged cmd closed

add message that he not closed cmd can be safly closed
This commit is contained in:
psychocrypt
2017-12-07 21:42:00 +01:00
parent 56c84e942a
commit 62a13f03d4
+2
View File
@@ -297,6 +297,8 @@ void UACDialog(const std::string& binaryName, std::string& args)
if(ShellExecuteEx(&shExInfo))
{
printer::inst()->print_msg(L0,
"This window has been opened because xmr-stak needed to run as administrator. It can be safely closed now.");
WaitForSingleObject(shExInfo.hProcess, INFINITE);
CloseHandle(shExInfo.hProcess);
// do not start the miner twice