Files
loader/VmDetect.h
2026-11-03 20:45:39 -08:00

14 lines
454 B
C++

#pragma once
#include <windows.h>
#include <string>
// Returns true when the machine looks like a virtual machine or hypervisor
// guest. When 'reason' is provided it receives a short human-readable cause.
bool IsVirtualMachine(std::wstring* reason = nullptr);
// --allow-vm on the command line, ARDRV_ALLOW_VM=1, or AllowVm=1 under
// HKLM\SOFTWARE\ArDrvLoader. Any of them disables the VM block.
bool VmOverrideRequested(int argc, wchar_t** argv);