摘要: WindowsIdentity identity = WindowsIdentity.GetCurrent(); WindowsPrincipal principal = new WindowsPrincipal(identity); if (!principal.IsInRole(WindowsBuiltInRole.Administrator)) { MessageBox.Show("You... 阅读全文
posted @ 2012-01-09 13:04 队长 阅读(251) 评论(0) 推荐(0) 编辑