Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading registry settings
Message
General information
Forum:
Visual Basic
Category:
Windows API functions
Miscellaneous
Thread ID:
00430119
Message ID:
00430271
Views:
14
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Hi, I was wondering if anyone had or knew of any good (working) examples of >>reading registry keys. Im trying to set up a quick program that will read any >>registry key and output the value. I understand the basics and how it works i >>just cant get the coding right.
>

>>Either pick up Dan Appleman's Guide to using the Win32 API with VB, or look >>into the Wscript.Shell COM object, part of WSH, which can read and write >>string values in the registry
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Also, VB has a few native commands -- GetSetting, SaveSetting, and DeleteSetting -- that make it real easy. The only caveat is that these functions are a little less flexible, and are intended for app-specific use. The settings are written under a "Software/VB and VBA Program Settings" branch, which is fine for your own application settingss... but if you have reason to read something else (some Norton Antivirus Default setting or whatever), you will need to use the API calls.

By the way, I cannot say enough good things about Dam Appleman's book. A great investment.
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Reply
Map
View

Click here to load this message in the networking platform