Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


The information on this page refers to LM-X

v5

5.

3.3

4 or newer, which introduced

the LMX_GetHostType API function

support for Xen and support for a CLOUD host type.  If you are running a previous version of License Statistics, please see documentation for previous versions.

The LMX_GetHostType function lets you check the type of the host machine.

...

This function returns one of the following types:

Code Block
languagecpp
linenumberstrue
LMX_UNKNOWN_TYPE
LMX_HOST_PHYSICAL
LMX_HOST_VIRTUAL
LMX_HOST_CLOUD


Remarks

Virtualization detection is officially supported for VMware, Microsoft Hyper-V, VirtualBox, KVM, QEMU, and Xen. See Licensing for virtual machines and cloud computing for more information.


Example

Code Block
languagecpp
if (LMX_GetHostType() == LMX_HOST_VIRTUAL)
{
  printf("This software is not allowed to run in virtual environment!\n");
  exit(1);
}

...