Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO I READ A REGISTRY KEY

Status
Not open for further replies.

joebickley

Programmer
Aug 28, 2001
139
GB
HI Peeps
Im a bit of a newbie. I am using VB6 pro and i am trying to read the value of one of the registry keys on my system. The key is HKEY_CURRENT_USER\Environment\TMP im not so much interested in this particular key but just generally how i can read the value from a number of keys.

Also if there are any code referances that i need to turn on what are they?

Please help

Thanks
Joe
 
VB has built in functions to read registry keys GetSetting and SaveSetting (I think), however these are limited to the CurrentUser\Software\VB and VBA Program Settings key.
To read out of this you will need to call API's.
RegOpenKey,RegQueryKey,RegSaveKey etc
There are quite a few more.
Check the win32 API for parameters.

:¿)
 
There is a dll called regobj.dll that's used to store, retrieve, and modify information in the registry. It's available under the reference Registration Manipulation Classes

Josh
 
Simple example: faq222-92.
VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top