supercell-wx/scwx-qt/source/scwx/qt/util/check_privilege.hpp
2025-01-12 09:28:33 -05:00

25 lines
353 B
C++

#pragma once
#include <memory>
namespace scwx::qt::util
{
bool is_high_privilege();
class PrivilegeChecker
{
public:
explicit PrivilegeChecker();
~PrivilegeChecker();
// returning true means check failed.
bool first_check();
bool second_check();
private:
class Impl;
std::unique_ptr<Impl> p;
};
} // namespace scwx::qt::util