Windows Registry Wrapper aims to streamline the use of the Windows Registry by providing easy to use CRUD functionality.
- It comes packed as a header-only file, meaning the only dependency you will have to worry about is the Windows API, which this wrapper builds upon.
- Written in modern C++17
The following table illustrates what functions are available for each type of operation
Operation | Function | |
---|---|---|
Create | Key | Creates a key node under one of the hives |
Number | Creates a value that stores a DWORD under a key | |
String | Creates a value that stores a string under a key | |
Query | Number | Gets the data stored in a DWORD value |
String | Gets the data stored in a string value | |
Key Info | Gets number of subkeys, the lenght of the longest subkey, number of values, length of the longest value | |
Keys | Gets names of all subkeys | |
Value Names | Gets names of all values belonging to the key | |
Update | Number | Sets data for a DWORD value |
String | Sets data for a string value | |
Remove | Key | Removes key if it has no children |
Value | Removes a specific value from a key | |
Subkeys | Removes all direct child nodes | |
Values | Removes all of the key's values | |
Cluster | Removes a key recursively | |
Misc | Peek Value | Retrieves the type and size of a value |
Key Exists | Checks if a key exists | |
Value Exists | Checks if a value exists | |
Open | Opens a registry key with the desired access rights |
An example of how to effectively use these functions is provided in example.cpp
.
The documentation can be found inside the header file.