runner: show message box when restarting with different elevation fails (#1061)

Also make the message box appear on top of the settings window.
This commit is contained in:
Bartosz Sosnowski
2020-01-09 18:17:42 +01:00
committed by GitHub
parent a2a683d31e
commit dad732b7e6
6 changed files with 46 additions and 5 deletions

View File

@@ -58,6 +58,9 @@ bool run_elevated(const std::wstring& file, const std::wstring& params);
// Run command as non-elevated user, returns true if succeeded
bool run_non_elevated(const std::wstring& file, const std::wstring& params);
// Run command with the same elevation, returns true if succedded
bool run_same_elevation(const std::wstring& file, const std::wstring& params);
// Get the executable path or module name for modern apps
std::wstring get_process_path(DWORD pid) noexcept;
// Get the executable path or module name for modern apps