简体   繁体   English

应用程序可以自己以不同的特权运行吗?

[英]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. 我们正在使用C#和VS 2010开发winforms应用程序,并且已经完成了原型。 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. 此外,我们还实施了许可逻辑,该逻辑也正在接受测试,它会从本地PC收集某些信息(HDD序列号,CPU ID等)以创建几乎唯一的激活密钥。

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). 我们高度怀疑这是因为基础方法 (WMI)根据Windows(Vista及更高版本)上的用户权限产生不同的值。

So, given this information; 因此,鉴于此信息; Is it possible that a C# application run under different privileges (Sometimes Admin sometimes standard user) on its own? C#应用程序是否有可能自己以不同的特权(有时是Admin,有时是标准用户)运行?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在C#中,类如何以在ASP.Net和非Web应用程序下均可工作的方式完成其自己的应用程序终结处理? - In C#, how can a class do its own application-end finalization in a way that works under both ASP.Net and non-web applications? Windows应用程序与运行它的用户的特权不同 - Windows Application Different Privileges from the User Running it 如何在具有特定权限的用户下运行一个 NUnit 测试 - How to run one NUnit test under a user with certain privileges 申请特权 - Privileges of an Application 如何使用自己的消息泵运行表单? - How to run a form with its own message pump? 您是否可以拥有一个从只有用户级别权限的客户端应用程序链接的具有管理员权限的 DLL? - Can you have a DLL with administrator privileges that is linked from a client application with only user level privileges? 如何在没有管理员权限的情况下在ie7中运行Activex控件? - how can run an activex control in ie7 without admin privileges? 每个SSIS作业都在其自己的AppDomain下运行吗? - Does each SSIS job run under it's own AppDomain? 有没有办法在自己的帐户下运行C#程序? - Is there a way to run a C# program under it's own account? 通过自己的应用程序运行/驱动Excel - Run/drive Excel via own application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM