CheckVirtualPC macro

<< Click to Display Table of Contents >>

Navigation:  WinLicense > SecureEngine® Macros >

CheckVirtualPC macro

The CHECK_VIRTUAL_PC macro allows you to check if your application is running under VMWare/VirtualPC.

 

NOTE: The current version of SecureEgine® does not support this macro for .NET languages or Visual Basic applications.

 

The CHECK_VIRTUAL_PC macro can be called from inside other macros.

 

The CHECK_VIRTUAL_PC macro has a special syntax:

 

CHECK_VIRTUAL_PC (user_variable, user_value)

 

Where "user_variable" is any local or global variable in the application and "user_value" is any immediate value (constant value). The way that it works is the following:

 

The CHECK_VIRTUAL_PC macro is called.

 

SecureEngine takes control of the processor and make special checks to know if your application is running under VMWare/VirtualPC.

 

If your application is not running under VMWare/VirtualPC, SecureEngine sets "user_variable" equal to "user_value".

 

If the application is running under VMWare/VirtualPC, SecureEngine does not set "user_variable". You should take care of initializing "user_variable" to something else from "user_value".

 

SecureEngine returns control to the protected application. The protected application should check the value of "user_variable" and execute the desired action if the application is running under VMWare/VirtualPC.

 

Click to expand/collapseShow C/C++ Macro Usage
Click to expand/collapseShow Delphi Macro Usage