标签:window stp dom identity ipa blog har dmi app
AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); WindowsPrincipal principal = (WindowsPrincipal)Thread.CurrentPrincipal; WindowsIdentity identity = (WindowsIdentity)principal.Identity; FastPrincipal prin = new FastPrincipal(identity); isAdmin = prin.IsInRole(WindowsBuiltInRole.Administrator);
标签:window stp dom identity ipa blog har dmi app
原文地址:http://www.cnblogs.com/xufeng13/p/6247386.html