C # registry class lookup

Looking for a C # class that wraps calls to do the following:

read and write key value read and write keyword

list entries in the key. It is important. For example, you must list all entries in: HKEY_LOCAL_MACHINE \ SOFTWARE \ ODBC \ ODBC.INI \ ODBC Data Sources

(I looked at some codeproject.com registry keys and they did not list)

+4
source share
4 answers

Use the standard C # /. NET registry classes and list the result of GetSubKeyNames ().

See here for an example.

+4
source

Look in the Microsoft.Win32 namespace. There you will find functions for creating and reading registry entries.

Registry.CurrentUser.OpenSubKey() Registry.CurrentUser.CreateSubKey() 

etc..

+3
source

Hope this code helps you take a look at this post. Iteration of the registry in C #

Code is also included in it.

0
source

Source: https://habr.com/ru/post/1276956/


All Articles