How To Enumerate the Subkeys of an Open Registry Key (267908)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q267908 SUMMARY
This article provides an example of how to use API functions to programmatically find keys in the system registry. The sample demonstrates searches of root subkeys for specified text strings. An option to perform case-sensitive text searches is presented.
The example uses the RegEnumKeyEx API function to enumerate subkeys of a specified open registry key. The function retrieves information about one subkey each time it is called.
REFERENCES
For more information the Registry API functions, please search on the following topics in either the Win32 Programmer's Reference or the Microsoft Developer Network (MSDN) Library CD-ROM:
- RegCloseKey
- RegEnumKeyEx
- RegOpenKeyEx
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
145679 How To Use the Registry API to Save and Retrieve Setting
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbAPI kbCodeSnippet kbhowto kbRegistry KB267908 |
---|
|