Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identifying Windows version
Message
De
03/04/2015 16:29:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Identifying Windows version
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01617779
Message ID:
01617779
Vues:
78
Sorry to repeat an old topic...

Since versions of Windows since 8.1 (and later) essentially lie to a program about version, would the NetWkstaGetInfo() API function ( http://www.news2news.com/vfp/?example=436&function=734 ) work as an alternative to the VFP built-in OS() and GetVersionEx() API function to identify the operating system? On the few tests that I've performed thus far, it appears to give the desired result without having to muck with the manifest (which could be a pain, as each new OS version would likely requires an additional GUID to be added to the manifest). Would there be restrictions to the API (e.g. user privilege level may prevent running the function) that might cause use of this function not to give valid results? One downside thus far I've seen is that the NetWkstaGetInfo() API does not appear exist in 95/98/Me platforms and NT platforms prior to Windows 2000.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform