[英]Detect if Windows is running from within Parallels?
I'm trying to figure out a way to programatically determine if a copy of windows is running inside a copy of Parallels. 我试图找出一种以编程方式确定Windows副本是否在Parallels副本中运行的方法。 I have found this post with very good instructions for determining if Windows is running within VMWare, VirtualPC, or WINE, but I haven't been able to find anything similar for Parallels.
我发现这篇文章提供了很好的说明,用于确定Windows是否在VMWare,VirtualPC或WINE中运行,但是我无法为Parallels找到类似的东西。 How does one go about detecting Parallels?
如何检测Parallels?
You can detect if you are running inside Parallels if you interrogate the hardware manufacturer and model information in the .net System.Management class. 如果您查询.net System.Management类中的硬件制造商和型号信息,则可以检测是否在Parallels中运行。 This Article describes in detail how to get hardware information.
该文章详细介绍了如何获得硬件信息。 If you are running in Parallels, the hardware manufacturer will return "Parallels Software International Inc."
如果您在Parallels中运行,则硬件制造商将返回“ Parallels Software International Inc.”。 and the model will return "Parallels Virtual Platform"
并且模型将返回“ Parallels Virtual Platform”
Turns out that the redpill method works fine for detecting Parallels 事实证明redpill方法可以很好地检测Parallels
Edit: 编辑:
As Paul Alexander noted in his comment, Red Pill no longer works on Parallels. 正如Paul Alexander在评论中指出的那样,Red Pill不再适用于Parallels。 I did find another method, however.
我确实找到了另一种方法。 If you look up the BIOS serial number, 'Parallels' is part of the serial number string.
如果您查找BIOS序列号,则“ Parallels”是序列号字符串的一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.