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.
2020-05-25 19:32:53 +02:00
|
|
|
|
using System.Security.Principal;
|
|
|
|
|
|
|
|
|
|
namespace CC_Functions.W32
|
2019-09-07 10:12:24 +02:00
|
|
|
|
{
|
|
|
|
|
public static class MiscFunctions
|
|
|
|
|
{
|
2019-12-22 16:58:16 +01:00
|
|
|
|
public static bool IsAdministrator =>
|
|
|
|
|
new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
|
2019-09-07 10:12:24 +02:00
|
|
|
|
}
|
2019-11-29 21:27:24 +01:00
|
|
|
|
}
|