Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to identify OS programatically.
Message
De
30/07/2002 14:04:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
How to identify OS programatically.
Divers
Thread ID:
00684068
Message ID:
00684068
Vues:
54
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform