Hypervisor

From CoreGUI Wiki
Revision as of 01:16, 28 February 2024 by Administrator (talk | contribs) (Created page with "== About == hypervisor is a 70 line module in recent versions of CoreGUI and CoreGUI-PE. The module has 3 functions: * detectHyperVisor * GetHyperVisor * showHyperVisorMe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

hypervisor is a 70 line module in recent versions of CoreGUI and CoreGUI-PE.

The module has 3 functions:

  • detectHyperVisor
  • GetHyperVisor
  • showHyperVisorMessage

detectHyperVisor

detectHyperVisor works by getting the current reported model of the system using WMIC from the Win32_ComputerSystem module. It attempts to detect the following:

  • Hyper-V
  • VMware7,1
  • VirtualBox
  • VMware

QEMU and multiple others are planned to be added in future.

getHypervisor

getHyperVisor calls detectHyperVisor, if a HyperVisor is detected, it's returned to the caller. If not, "none" is returned.

showHyperVisorMessage

showHyperVisorMessage calls detectHyperVisor, if detectHyperVisor sets F1's isVirtualMachine to 'true', vboxwarning is called, displaying a message with the detected platform.