This article is a mirror article of machine translation, please click here to jump to the original article.

View: 45114|Reply: 1

[Source] C# determines whether a program is running as an administrator

[Copy link]
Posted on 7/31/2016 10:32:50 AM | | | |


I ran the same program, one as normal and one as administrator.

Running as administrator returns true, while running as normal returns false.

code as follows:







Previous:mvc uses Html.RenderPartial for pagination
Next:ECS Windows 2012 "Error when enabling Windows feature NetFx3" during SQL Server 2012 installation process...
 Landlord| Posted on 1/26/2021 10:00:03 AM |
C# programs run with administrator privileges
https://www.itsvse.com/thread-3217-1-1.html

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com