Completely disallow running app inside VM

Hi guys, I want to completely disallow running of my application inside VMs. In other words, I don't even want users to have a trial period.

What's the best function to call to check the VM status?

Yes, with UseTrial() use the TA_DISALLOW_VM flag (so, either TA_USER | TA_DISALLOW_VM or TA_SYSTEM | TA_DISALLOW_VM)

With product key make sure you've disabled VM activations in the interface. See: Licensing from inside a virtual machine or hypervisor