campinas
asked on
Registry Access with VB6
VB6 has a GetAllSettings function that returns all values of a key created with SaveSettings. When the number of values is large, this function can save the app from opening the key repeatedly in order to read each value.
However, SaveSettings only can put information in HKEY_CURRENT_USER, which makes it accessible only by the user who put it there (I need access to this info for all users.)
Secondly, there is no Win32 API that returns all values of a key; one can get all value names, but then the key needs to be opened and closed each time a value is read.
My question is, what would be an elegant way in VB6 to read all values of a key in one shot?
Can SaveSettings be made to write to HKEY_LOCAL_MACHINE, for instance?
However, SaveSettings only can put information in HKEY_CURRENT_USER, which makes it accessible only by the user who put it there (I need access to this info for all users.)
Secondly, there is no Win32 API that returns all values of a key; one can get all value names, but then the key needs to be opened and closed each time a value is read.
My question is, what would be an elegant way in VB6 to read all values of a key in one shot?
Can SaveSettings be made to write to HKEY_LOCAL_MACHINE, for instance?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-) Anytime
ASKER