Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call a registry function ?
Message
 
 
À
25/05/2002 15:20:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00661402
Message ID:
00661841
Vues:
15
>i want to know the wallpaper file by using the registry key HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper.
>what function in the vfp's registry.prg can i call to do that and how ?

In VFP6 and later it's a Registry class.
#INCLUDE registry.h
oReg = NEWOBJECT("registry", "registry")
cValue = ""
oReg.GetRegKey("ResWidth",@cValue,;
		"Software\Microsoft\VisualFoxPro\6.0\Options",;
		HKEY_CURRENT_USER)
? cValue
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform