Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which platform is used
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00594324
Message ID:
00594358
Vues:
22
>How can I deterine which operating system is being used from within FPW26 (NT/2K/XP etc)?
>
>Thanks in advance,
>
Ron,

Unfortunately, OS() and OS(1) return DOS 5.00, and Windows 3.95 respectively on all Win32 platforms up to at least Win2K Pro. Further, the GetVersion() API call available in Win32s doesn't correctly report it either.

You might wander out to Rick Strahl's West Wind site. I believe that he has a free utility that will allow you to call a 32 bit dll from a 16 bit app. Using that you could call the GetVersionEx() function passing a string to it representing an OSVERSIONINFO structure. Once you do that, you can parse the value returned to get the major and minor version numbers.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform