xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::windows::RegistryValue Concept Reference

A concept that describes C++ data types used for registry values. More...

#include <windows/RegistryKey.hpp>

Concept definition

Detailed Description

A concept that describes C++ data types used for registry values.

The follwoing table shows which C++ types are used for which registry value types:

Registry Value Type C++ Type
REG_DWORD DWORD or std::uint32_t
REG_QWORD std::uint64_t
REG_SZ std::wstring or std::string
REG_EXPAND_SZ std::wstring or std::string
REG_MULTI_SZ std::vector<std::wstring> or std::vector<std::string>
REG_BINARY xentara::utils::core::RawDataBlock or std::vector<std::byte>

Registry values of type REG_BINARY with the correct length can also be accessed using the C++ types DWORD, std::uint32_t, or std::uint64_t. DWORD and std::uint32_t can be used for data with a length of 4 bytes (32 bits), and std::uint64_t for REG_BINARY can be used for data with a length of 8 bytes (64 bits).

Note
This concept is only available under Windows