标签:style blog http color ar os sp div on
原文:C#:判断当前程序是否通过管理员运行public bool IsAdministrator() { WindowsIdentity current = WindowsIdentity.GetCurrent(); WindowsPrincipal windowsPrincipal = new WindowsPrincipal(current); return windowsPrincipal.IsInRole(WindowsBuiltInRole.Administrator); }
转载声明:本文转载至http://www.zhoumy.cn/?p=9
标签:style blog http color ar os sp div on
原文地址:http://www.cnblogs.com/lonelyxmas/p/4084988.html