473,659 Members | 3,395 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programmaticall y Find All Registry Entries

Thank you in advance for any and all assistance, it is GREATLY appreciated.
I'm wondering if there is a way to duplicate a function in regedit of find
and find next for keywords programmaticall y, then to list them in a treeview
or listbox?

If so, could someone point me to some code?
--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
Oct 11 '06 #1
3 2450

"eSolTec, Inc. 501(c)(3)" <es*****@noemai l.nospamwrote in message
news:7D******** *************** ***********@mic rosoft.com...
Thank you in advance for any and all assistance, it is GREATLY
appreciated.
I'm wondering if there is a way to duplicate a function in regedit of find
and find next for keywords programmaticall y, then to list them in a
treeview
or listbox?

If so, could someone point me to some code?
--
Michael Bragg, President
eSolTec, Inc.
a 501(C)(3) organization
MS Authorized MAR
looking for used laptops for developmentally disabled.
You should be able to build one yourself using the Microsoft.Win32 namespace
(notibly, the Registry classes).

HTH,
Mythran
Oct 11 '06 #2
Hello eSolTec, Inc. 501(c)(3),

Geez. Is there anything you know how to do yourself? It would save us all
a great amount of time if you just asked someone to write your app for you.

-Boo
Thank you in advance for any and all assistance, it is GREATLY
appreciated. I'm wondering if there is a way to duplicate a function
in regedit of find and find next for keywords programmaticall y, then
to list them in a treeview or listbox?

If so, could someone point me to some code?

Oct 12 '06 #3
Hi Michael,
>I'm wondering if there is a way to duplicate a function in regedit
of find and find next for keywords programmaticall y, then to list
them in a treeview or listbox?
I am afraid there hasn't been a sample by hand to do this, the general
approach is to enumerate all the registry keys/subkys and their values for
the target data you want to find.

You can use the RegistryKey.Get SubKeyNames to enumerate a specific key
(e.g. HKCU), then enumerate each of its subkey recursively. Once you get a
leaf subkey (which hasn't its own subkeys), you can use the
RegistryKey.Get ValueNames to get all of its value names and then use the
RegistryKey.Get Value to retrieve their values.

The following MSDN documentation contains the code snippets on using the
above FCL methods:

RegistryKey.Get SubKeyNames Method
http://msdn2.microsoft.com/en-us/lib...trykey.getsubk
eynames.aspx

RegistryKey.Get ValueNames Method
http://msdn2.microsoft.com/en-us/lib...trykey.getvalu
enames.aspx
By the way, if you are not very familiar about how to populate a treeview
control in VB.NET, you can refer to the following samples:

http://abstractvb.com/code.asp?A=967

http://www.startvbdotnet.com/controls/treeview.aspx
I hope the above information helps, if you have any questions or concerns,
please do not hesitate to let me know. I am standing by to help you.

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Oct 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4171
by: Atul | last post by:
Hi, How can I "disable script debugger" programmatically using C#? Its similar action when we check the check box from IE (Tools | Internet Options...| Advanced). Any ideas??? Thanks Atul
2
8117
by: Jak Sparrow | last post by:
What are some good ways to programmatically check for software already installed on a computer? For example, to check a version of Internet Explorer, a program can check the registry for the following value: Version, and see if the version is 6.0 or not. However, not all installed software can be checked as easily. For example, Windows Media Player 9 has the following registry path:
1
2838
by: Silverton Mike | last post by:
I need to retrieve Windows Media Player playlists programmatically via C# from a desktop machine. Does WMP keep track of used/created playlists via registry entries or a saved file on the hard disk? I know WMP likes to save its playlists in directories such as: H:\Documents and Settings\Administrator\My Documents\My Music\My Playlists but any .wpl files saved outside such a scheme wont be found if only looking here.
1
1643
by: Daniel | last post by:
what exact registry entries does the installing of a .net windows service create? either with installutil or with a deployment project.
8
2340
by: vadim | last post by:
Hi, Is there a .Net control available that allows to write into web.config file appsettings section? The idea is to create encrypted user name and password for database connection and then use them from ASP.Net. The program that will create the encrypted entries is a simple winform app. ConfigurationSettings.appsettings allows to read web.config sections but how
11
3576
by: Josh Flanagan | last post by:
I am trying to write to the event log from ASP.NET, on Windows XP SP1. As soon as I try to write an event (or even query the source with EventLog.SourceExists() or EventLog.LogNameFromSourceName()) I get a SecurityException "Requested registry access is not allowed.". I have read the KB article associated with this error message, which indicates the source needs to be created outside of ASP.NET. I created an Installer class, and ran...
1
1341
by: Bud Roble | last post by:
I've written a service program in VB.NET and I can't seem to get it to be able to read entries in the registry. Is there some trick to this? I have a windows program that reads and writes the same registry entries and it works fine. I'm using the exact same code in the service program to read the registry entries but it always returns nothing, so my program won't start because I'm trying to assign a null value to a variable. Any...
0
2800
by: rbanerji | last post by:
I have a COM object built in C#. Its a an IE deskband. It implements the following method: public static void Register( Type t ) Which gets called when regasm is used and it makes teh appropriate entries into the registry. Works great. Now I am trying to build a installer for this using VS 2005. I did the
4
3250
by: Bob Alston | last post by:
Can anyone tell me what are the files required for Replication manager and registry entries required? I think I read that there are 7 files and 3 registry entries but no specifics. I have Replication Manager installed on one server. It works fine. The replication manager files are located in c:\program files\common files\microsoft shared\database replication\
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8748
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2754
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.