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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
First release