9 lines
246 B
C#
9 lines
246 B
C#
using System.Security.Principal;
|
|
|
|
namespace Misc
|
|
{
|
|
public static class MiscFunctions
|
|
{
|
|
public static bool IsAdministrator => new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
|
|
}
|
|
} |