mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Startup admin restarter
This commit is contained in:
@@ -345,7 +345,7 @@ namespace GHelper
|
||||
}
|
||||
}
|
||||
|
||||
static bool IsUserAdministrator()
|
||||
public static bool IsUserAdministrator()
|
||||
{
|
||||
WindowsIdentity identity = WindowsIdentity.GetCurrent();
|
||||
WindowsPrincipal principal = new WindowsPrincipal(identity);
|
||||
|
||||
Reference in New Issue
Block a user