A simple Win32 Registry encapsulation.
Include the Registry class.
#include <ensemble/registry.cpp>
using Ensemble::Registry;We create an instance of Registry with a key representing our software.
Registry* registry = new Registry("Software\\Sample");We can add an integer into the registry.
registry->RegSetInt(TRUE, "sample-integer", 101);We can retrieve the integer.
int i = registry->RegGetInt(TRUE, "sample-integer");