Run the Settings process un-elevated when possible

and if not possible run it elevated and let the Settings
process deal with it.
Add wrappers for GetModuleFileNameW.
This commit is contained in:
Enrico Giordani
2019-12-11 16:32:40 +01:00
committed by Enrico Giordani
parent 5a3c852b32
commit fd8fc679be
3 changed files with 146 additions and 84 deletions

View File

@@ -57,3 +57,6 @@ std::wstring get_process_path(DWORD pid) noexcept;
std::wstring get_process_path(HWND hwnd) noexcept;
std::wstring get_product_version();
std::wstring get_module_filename(HMODULE mod = nullptr);
std::wstring get_module_folderpath(HMODULE mod = nullptr);