bootstrapper: add support for silent arg (#5590)

This commit is contained in:
Andrey Nekrasov
2020-08-07 12:00:14 +03:00
committed by GitHub
parent 8f98866d71
commit bd80bb6bb3
5 changed files with 121 additions and 47 deletions

View File

@@ -67,7 +67,7 @@ bool is_process_elevated(const bool use_cached_value = true);
bool drop_elevated_privileges();
// Run command as elevated user, returns true if succeeded
bool run_elevated(const std::wstring& file, const std::wstring& params);
HANDLE run_elevated(const std::wstring& file, const std::wstring& params);
// Run command as non-elevated user, returns true if succeeded, puts the process id into returnPid if returnPid != NULL
bool run_non_elevated(const std::wstring& file, const std::wstring& params, DWORD* returnPid);