summaryrefslogtreecommitdiffstats
path: root/src/utils/winreg.py
Commit message (Collapse)AuthorAgeFilesLines
* utils: add win edit registry utilitiesAlejandro Sirgo Rica2024-07-291-0/+114
Add winreg.py to the utils folder. Implement hive enum types, hive handler validation and validated get_* functions for nodes and registry values. Implement the utility hive operations through the Hivex library. This serves as preparatory work for BCD manipulation but it also has potential to improve registry usage in previous code. UCS-2 Little Endian is the prefered windows registry text encoding for binary content. Define a WINDOWS_HIVE_ENCODING global variable to use when encoding string to write in the win registry. This commit is preparatory work for the new native postinstall code.