2021-10-16 16:19:51 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-29 17:28:48 +01:00
|
|
|
|
2021-10-16 16:19:51 +01:00
|
|
|
bool IsElevated();
|
2022-09-29 17:28:48 +01:00
|
|
|
int RunElevated(const std::wstring& Params, bool bGetCode = false);
|
2022-11-20 16:23:15 +00:00
|
|
|
int RunElevated(const std::wstring& binaryPath, const std::wstring& Params, quint32 uTimeOut = 0);
|
2021-10-16 16:19:51 +01:00
|
|
|
int RestartElevated(int &argc, char **argv);
|
|
|
|
|
2022-09-02 10:04:49 +01:00
|
|
|
bool IsAdminUser(bool OnlyFull = false);
|
|
|
|
|
2021-10-16 16:19:51 +01:00
|
|
|
bool IsAutorunEnabled();
|
|
|
|
bool AutorunEnable(bool is_enable);
|