In Visual Basic 6, how can I get all the values of keys under, for example:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Which would return the following values (depending on user):
“C:\Program Files\Steam\Steam.exe”
-silent“C:\Program
Files\Skype\Phone\Skype.exe” /nosplash
/minimized“C:\Program Files\Windows
Live\Messenger\msnmsgr.exe”
/backgroundEtc…
As the keys are not constant, I do not know how to read these. Thanks for any help!
You’re looking for the API function RegEnumKeyEx – you can find a VB example at MSDN here