开发者

Get the rights for current user

开发者 https://www.devze.com 2023-02-23 05:53 出处:网络
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.

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

精彩评论

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

关注公众号