OrchardSoftware / 4D-Win32API

Win32API is a plugin for 4th Dimension that lets your Windows applications take advantage of Windows-specific features that are not exposed by native 4th Dimension commands. Win32API lets you set a custom icon for any window, change the name of your 4D application in the title bar and task bar, customize file open and save dialogs, get information from the Regional Settings control panel, and much more.
MIT License
13 stars 9 forks source link

Add ability to detect if 4D is running within a virtual machine #9

Closed wjford closed 8 years ago

wjford commented 9 years ago

It has been requested that virtual machine detection is added to Win32API. Currently, Orchard Software is unable to spend any development time on this request.

http://www.codeproject.com/Articles/9823/Detect-if-your-program-is-running-inside-a-Virtual is a good starting point. However, inline assembly cannot be included in the x64 version.

JASR commented 9 years ago

With a combination of existing win32API commands, LEP and some digging around in the registry, I managed to write a few routines which detect whether the 4D application is running on a VM, what the Host computer is called, and what the host OS is - Only tested on Hyper-V situations.

If anyone wants the code stubs, please eMail/leave an eMail address