Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which platform is used
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00594324
Message ID:
00594358
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform