Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to identify OS programatically.
Message
From
30/07/2002 14:04:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
How to identify OS programatically.
Miscellaneous
Thread ID:
00684068
Message ID:
00684068
Views:
55
Hi all,

I'm testing Nigel Coates's MAPI freeware, - wonderful job Nigel! -

In my Win2000 box it fails on getting the MAPI profiles from the registry in this line...
RegOpenKeyEx(-2147483647, "Software\Microsoft\Windows Messaging Subsystem\Profiles", 0, 0, @lnHandle)
...just because they are in "Software\Microsoft\Windows NT\Current Version\Windows Messaging Subsystem\Profiles" instead.

VFP 7.0 OS() function is returning "5.0" for Win2000 and "5.1" for WinXP Pro, so I can use it to branch the logic according to the OS. -I also need to know what it returns for NT and Win9X-

But I was wondering if there is a better way to identify the OS or a better way to reach the "Windows Messaging Subsystem\Profiles" key regardless of the OS.

Thanks in advance,
Maria E. Zambrano
Next
Reply
Map
View

Click here to load this message in the networking platform