Sandboxie/SandboxiePlus/SandMan/Helpers/WinAdmin.h

15 lines
427 B
C++

#pragma once
bool IsElevated();
int RunElevated(const std::wstring& Params, bool bGetCode = false);
int RunElevated(const std::wstring& binaryPath, const std::wstring& Params, quint32 uTimeOut = 0);
int RestartElevated(int &argc, char **argv);
bool IsAdminUser(bool OnlyFull = false);
bool IsAutorunEnabled();
bool AutorunEnable(bool is_enable);
bool SkipUacRun(bool test_only = false);
bool SkipUacEnable(bool is_enable);