>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,
In addition to what Dan posted, with NT/2000 you have to worry about security issues with respect to the registry. Depending on your access rights, you may not be able to only all registry keys. You may be limited to areas like HKEY_CURRENT_USER.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao