简体   繁体   中英

Can an application run under different privileges on its own?

Ok, I know this is highly unlikely but hear me out:

We are developing a winforms application with C# and VS 2010 and have finished prototype. We have this prototype tested by our test users. Also we have a licensing logic implemented that is being tested as well and it gathers certain info from local PC (HDD Serial No, CPU ID etc.) to create an almost-unique activation key.

Test users have informed us that sometimes (even when physical devices are exactly the same) activation key changes and naturally application requires another license. We highly suspect this is because underlying methods (WMI) produce different values based on user's privileges on Windows (Vista and above).

So, given this information; Is it possible that a C# application run under different privileges (Sometimes Admin sometimes standard user) on its own?

我不这么认为,应用程序将如何自行输入admin-password以获取提升的特权...?

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