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