Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cregistry.prg problems under Win2K
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00699957
Message ID:
00699969
Views:
21
>Hi,
>
>I've been successfully using the sample Cregistry.prg to get & set registry values under NT.
>
>Under Win2K, setting registry values no longer creates the keys if they don't exist.
>
>Any advice?
>
>BTW, I fixed the Init method in the registry class to use THIS.cRegDLLFile = DLL_ADVAPI_NT
> THIS.cINIDLLFile = DLL_KERNEL_NT
>
>Since OS(1) returns "Windows 5.0", which resulted in using Win95.
>
>TIA,
>
Ellis,

OS(1) returns 5.0 for OSes later than Win95. For example, on Windows XP Home, it returns 5.01. I assume that it's referencing anything later than Win2K as 5.0. Win9x/Me returns 4.x depending on the version. This may be the source of the problem.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform