简体   繁体   中英

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 with 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.

呼叫

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM