NDEVR
API Documentation
RegistryEntry.h
1#pragma once
2#include <NDEVR/String.h>
3namespace NDEVR
4{
25
29 class NDEVR_BASE_API RegistryEntry
30 {
31 public:
36 RegistryEntry(const StringView& path_and_variable);
55 bool setValue(const StringView& value) const;
61 public:
67 public:
72 };
73 template class NDEVR_BASE_API StringStream<RegistyEntryType>;
74}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
RegistryEntry(const StringView &path_and_variable)
Constructs a RegistryEntry by parsing a combined path and variable string.
String path
The registry key path beneath the hive.
bool setValue(const StringView &value) const
Writes a string value to this registry entry.
RegistryEntry(const StringView &h_key, const StringView &path, const StringView &variable)
Constructs a RegistryEntry from an explicit hive key, path, and variable name.
static Buffer< StringView > AvailableKeys()
Returns the list of available root registry hive key names.
String h_key
The root hive key name (e.g., "HKEY_LOCAL_MACHINE").
String variable
The name of the registry value within the key.
RegistryEntry(const StringView &path, const StringView &variable)
Constructs a RegistryEntry from a separate path and variable name.
RegistyEntryType type
The expected data type of the registry value.
String getValue()
Reads the current value of this registry entry as a string.
Logic for reading or writing to a string or a user friendly, TranslatedString.
The core String View class for the NDEVR API.
Definition StringView.h:58
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.
RegistyEntryType
Specifies the data type stored in a Windows registry value.
@ e_resource_list
A device-driver resource list.
@ e_multi_sz
An array of null-terminated strings.
@ e_resource_requirements_list
A resource requirements list for a device driver.
@ e_dword_little_endian
A 32-bit unsigned integer in little-endian byte order.
@ e_qword_little_endian
A 64-bit unsigned integer in little-endian byte order.
@ e_link
A Unicode symbolic link.
@ e_sz
A null-terminated string.
@ e_none
No defined value type.
@ e_dword_big_endian
A 32-bit unsigned integer in big-endian byte order.
@ e_full_resource_descriptor
A full resource descriptor for a physical device.
@ e_qword
A 64-bit unsigned integer.
@ e_expand_sz
A null-terminated string with unexpanded environment variable references.
@ e_dword
A 32-bit unsigned integer.
@ e_binary
The value is stored as a hexadecimal value (REG_BINARY).