Startup admin restarter

This commit is contained in:
Serge
2023-05-07 00:24:47 +02:00
parent 460267aac7
commit 479572e39d
2 changed files with 14 additions and 4 deletions

View File

@@ -345,7 +345,7 @@ namespace GHelper
}
}
static bool IsUserAdministrator()
public static bool IsUserAdministrator()
{
WindowsIdentity identity = WindowsIdentity.GetCurrent();
WindowsPrincipal principal = new WindowsPrincipal(identity);