以下の内容はhttps://blog.systemjp.net/entry/2020/09/15/170457より取得しました。


C#で自分が管理者権限で動いているか調べる

private bool IsAdministrator()
{
    var identity = System.Security.Principal.WindowsIdentity.GetCurrent();
    var principal = new System.Security.Principal.WindowsPrincipal(identity);
    return principal.IsInRole(System.Security.Principal.WindowsBuiltInRole.Administrator);
}



以上の内容はhttps://blog.systemjp.net/entry/2020/09/15/170457より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14