Show/Hide Toolbars

Licence Protector 5

This command gives a feedback, if the application is started on a Virtual Machine.

 

 

 

 

Name

RunsOnVirtualMachine                                                                    

Purpose

This command allows to find out, if the application is running on a virtual machine.

Params

None

Returncode

Returncode

Type Integer

Note

0

no virtual machine

1

application runs on VMware

2

application runs on Virtual PC

3

application runs on Sun Virtual Box

4

application runs on Wine

5

application runs on Parallels - (tested with MAC Parallels Desktop version 6, 7 and Windows  Parallels Desktop version 4)

Usage

Allows to implement a different program logic for virtual machines, e.g. don't allow to start the application or use regular online checks

Sample

 

  iRes := lic.RunsOnVirtualMachine;

  if iRes <> 0 then

  << Virtual Machine>>

  ...

  end

See also


 

 

See also
 
Virtual Machine