[英]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.