开发者

Get the rights for current user

Hello I am working in VB.Net 2010 framework 2.0. In my application I want to run a Setup.exe wit开发者_开发百科h Process.start. I want to know that whether the user who has started the my application is having the rights to run the setup.exe Thanks for any reply in advance.


Call

new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜