RE: Detection of 4D running in a VM

2018-04-09 Thread Timothy Penner via 4D_Tech
How about calling wmic from LEP?

Something like this:
WMIC COMPUTERSYSTEM GET Model

The above command should return the term "Virtual Machine" if it is being 
virtualized.

-Tim



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Detection of 4D running in a VM

2018-04-09 Thread Epperlein, Lutz (agendo) via 4D_Tech
A call to "aa4D_M_Get_Information_Text" from the Info-Report component gives 
such information.

E.g.

   EXECUTE 
METHOD("aa4D_M_Get_Information_Text";*;"Array_Profiler";->$infoReport)  // Get 
the content of the Array_profiler.txt

The result is:

Manufacturer : VMware
Model Identifier : VMware Virtual Platform
Memory : 12288
System version : Windows Server 2008 R2 Standard SP1 (64-bit)
...
and so on.

Regards
Lutz Epperlein




> -Original Message-
> From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Jörg Knebel 
> via
> 4D_Tech
> Sent: Monday, April 9, 2018 3:46 PM
> To: 4D Tech Mailing List Technical <4d_tech@lists.4d.com>
> Cc: Jörg Knebel <jkne...@tttdatasystems.com.au>
> Subject: Detection of 4D running in a VM
> 
> G’day all,
> 
> I’m wondering if someone managed to identify uniquely if a 4D-application is 
> running
> in a VM…
> 
> I’m testing an application in Windows10 Pro while Win10P is running in VM 
> Ware,
> Parallels, VirtualBox on a Mac.
> 
> To get hardware and software information in Windows I use the fast 
> command-variety
> of “wmic” on the Mac the terminal command “system_profiler” has proven to be 
> useful.
> 
> The idea behind this stunt is to allow/deny an application to run in a 
> VM-enviornment.
> 
> Big ideas??
> 
> Any help/hint/4D-code is appreciated.
> 
> Thanks
> 
> Cheers
> Jörg
> *
> *
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> *
> *
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Detection of 4D running in a VM

2018-04-09 Thread Jörg Knebel via 4D_Tech
G’day all,

I’m wondering if someone managed to identify uniquely if a 4D-application is 
running in a VM…

I’m testing an application in Windows10 Pro while Win10P is running in VM Ware, 
Parallels, VirtualBox on a Mac.

To get hardware and software information in Windows I use the fast 
command-variety of “wmic” on the Mac the terminal command “system_profiler” has 
proven to be useful.

The idea behind this stunt is to allow/deny an application to run in a 
VM-enviornment. 

Big ideas??

Any help/hint/4D-code is appreciated.

Thanks

Cheers
Jörg
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**