libreg 1.0.5

dotnet add package libreg --version 1.0.5                
NuGet\Install-Package libreg -Version 1.0.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="libreg" Version="1.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add libreg --version 1.0.5                
#r "nuget: libreg, 1.0.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install libreg as a Cake Addin
#addin nuget:?package=libreg&version=1.0.5

// Install libreg as a Cake Tool
#tool nuget:?package=libreg&version=1.0.5                

Libreg

A modern, intuitive and simple C++ library to interact with the Windows registry

Build from source

Run:

$ msbuild libreg.sln

The build output can be found in the lib folder.

Usage


#include <libreg/Key.h>
#include <iostream>

void Example()
{
	// Open or create a key
	auto key = libreg::Key::OpenOrCreate(libreg::Hive::CurrentUser, "Software\\libreg", Access::AllAccess);
	
	// Set a value
	key.SetValue("foo", "bar", ValueType::Sz);
	
	// Create a key
	auto subkey  = key.CreateSubKey("sub-key");
	
	// Create a volatile sub-key*	
	auto volatile_subkey  = key.CreateSubKey("volatile-sub-key", true);


	// Read a value
	auto value = key.GetValue<libreg::MultiString>("foo");
	std::cout << "Value: " << value << std::endl;
	
	// List sub-keys in a key
	for (const auto &e: key.SubKeys())
	{
		std::cout << "Subkey: " << e.Path() << std::endl;
	}
	
	// List values in a key
	for (const auto &e: key.Values())
	{
		std::cout << "Name: " << e.first << ", type: " << e.second << std::endl;
	}
	
	// Delete a value
	key.DeleteValue("foo");
	
	// Delete a key
	key.DeleteSubKey("sub-key");
}
Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 938 5/15/2020
1.0.4 888 8/5/2019
1.0.3 838 6/26/2019
1.0.2 920 5/6/2019
1.0.1 886 5/1/2019
1.0.0 1,087 4/22/2019

First release