Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect SSD drive
Message
De
27/12/2017 14:46:44
 
 
À
27/12/2017 07:26:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01656676
Message ID:
01656774
Vues:
42
>>>Good evening,
>>>
>>>https://msdn.microsoft.com/en-us/library/windows/desktop/hh830532(v=vs.85) provides this information as MediaType = 4
>>>
>>>How to get it from VFP?>>>
>>I see there's been a lot of effort to get this information. But, I have to wonder how useful it is - can you let us know what you're trying to do?
>>
>>- It's only useful on real hardware, it's useless in a VM. VFP running on real hardware is becoming less common these days
>
>I have not yet looked into it, but a VM ***does*** know something about the physical HW it is running on, as some protection schemes detect if the VM instance is running on a different physical machine and ask for re-entering keys.

In the general case no, it doesn't know anything about the underlying host. This is by design. In practice there is some paravirtualization happening by default on some platforms, such as certain Windows OSs running on Hyper-V. This can expose some information about the host to the guest VMs.

Re migrating VMs from one physical host to another: I strongly suspect such "protection schemes" are actually looking at things like the MAC address of the virtual switch to which the VM connects, the MAC address of the DHCP server, the IP address or host name of the upstream gateway etc.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform