Skip to content

Ensemble Windows Registry

License

Notifications You must be signed in to change notification settings

resemble-studies/win-reg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ensemble Windows Registry

A simple Win32 Registry encapsulation.

Usage

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");