How to detect if my application is running in a virtual machine?

前端 未结 10 1295
青春惊慌失措
青春惊慌失措 2020-11-28 05:52

How can I detect (.NET or Win32) if my application is running in a virtual machine?

10条回答
  •  生来不讨喜
    2020-11-28 05:55

    Here is an example of one way to do it. It only works with Microsoft's Virtual PC and VMWare, but it's a start: http://www.codeproject.com/KB/system/VmDetect.aspx

提交回复
热议问题