Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read/Write NT/Windows2000 registry
Message
 
To
09/10/2001 10:20:00
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00565917
Message ID:
00565936
Views:
15
>This may or may not be a WinAPI issue, but am looking for guidance as to how to read/write to the NT/Win2000 registry.
>
>Under Win95/98/ME, a typical .ini file section would appear as:-
>
>[Compression]
>bCompressContents=1
>bCompressColor=1
>
>I currently access the data by converting the .ini file to a table and performing basic VFP functions to locate, replace with new value, etc, then using STRTOFILE() to save and overwrite the original .ini file, which is a simple but unsophisticated way of getting a result.
>
>How does one approach the same problem in NT/Win2000 please?
>
>TIA
>
Dennis,

Dan has given you the answer. I would, however, note that under NT/2K certain hives may not be writable depending on whether or not the user has administrative rights to the computer. If he/she does not, HKEY_CLASSES_ROOT may not be available for writing.
George

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

Click here to load this message in the networking platform