Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cregistry.prg problems under Win2K
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00699957
Message ID:
00699969
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform