Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a registry function ?
Message
 
 
To
25/05/2002 15:20:09
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00661402
Message ID:
00661841
Views:
14
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform