Description

This function will check if application is running on virtual machine (VM).

Availability

Protection method: All
Application status: All
Required features: None

Declaration

Visual C/C++
extern "C" __declspec(dllimport) int __stdcall IsVirtualMachine();
Visual Basic
Declare Function IsVirtualMachine Lib "pcgint.dll" Alias "_IsVirtualMachine@0" () As Long
Delphi
function IsVirtualMachine():longint;stdcall; external 'pcgint.dll' name '_IsVirtualMachine@0';
Delphi 64bit
function IsVirtualMachine(): Int64; stdcall; external 'pcgint64.dll';

Parameters

None

Return values

Function will return the following codes:

PCGI_STATUS_OK - No VM detected.

PCGI_VIRTUAL_MACHINE_DETECTED - application is running under VM.