mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-25 01:39:53 +08:00
10 lines
354 B
C++
10 lines
354 B
C++
#pragma once
|
|
|
|
struct SecurityHelper final {
|
|
static bool IsRunningElevated();
|
|
static HICON GetShieldIcon();
|
|
static bool RunElevated(PCWSTR privName, bool enable);
|
|
static bool EnablePrivilege(PCWSTR privName, bool enable);
|
|
static std::wstring GetSidFromUser(PCWSTR name);
|
|
static HANDLE DupHandle(HANDLE hSoruce, DWORD sourcePid, DWORD access = 0);
|
|
}; |