This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor RegistryHelper.cpp for better error handling and code readab…
…ility. - Allocate a buffer for storing subkey names. - Enumerate subkeys under the registry key. - Retrieve information about each subkey. - Check if the retrieval was successful, handle errors if not. - Add the subkey name and type to the vector. - Close the key handle after enumeration is complete. - Return the vector containing subkey names and types. Refactor RegEnumValues function in RegistryHelper.cpp for better error handling and code readability. - Prepare for value enumeration by retrieving information about the registry key. - Check if the retrieval was successful, handle errors if not. - Enumerate values under the registry key using RegEnumValue function. - Handle errors during enumeration by closing the key handle and throwing an exception.
- Loading branch information
Showing
1 changed file
with
33 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters