This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
CC-Functions/W32/Security.cs
2020-05-23 17:22:45 +02:00

8 lines
236 B
C#

namespace CC_Functions.W32
{
public static class MiscFunctions
{
public static bool IsAdministrator =>
new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
}
}