the buffer initializing the variables
STORE SPACE(256) TO lpbData, lpszValue
traversing the APIs (RegEnumValue,RegEnumKey) are returned as their exact values.
in the cursor returned by code above i see that there is only path registered key as key might be too long than 256 chars.
in my vfp i have not a path >256 chars
if the case, increasing this value can solve the problem (to confirm).
can you confirm also the error pointed in this code in your case (independent of registry.prg)
http://www.news2news.com/vfp/?example=131&function=194if you execute regedit.exe as administrator and go to this key (in my windows 10)
HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options
you can see all the vfp 9 options settings in registry.
can capture all options set simply by rightclick on "options " key and choose "export" to txt file.
this is a manual way to return all vfp 9 options settings.