Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identifying Windows version
Message
De
03/04/2015 18:04:10
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
03/04/2015 16:29:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
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:
01617781
Vues:
60
>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.


https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

snip:

Windows 8.1 6.3*
Windows Server 2012 R2 6.3*
Windows 8 6.2
...

* For applications that have been manifested for Windows 8.1 or Windows 10 Technical Preview. Applications not manifested for Windows 8.1 or Windows 10 Technical Preview will return the Windows 8 OS version value (6.2). To manifest your applications for Windows 8.1 or Windows 10 Technical Preview, refer to Targeting your application for Windows.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform