Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
registry.hpp
Go to the documentation of this file.
1#pragma once
2
3// Windows Registry read/write (Windows only — no-ops on other platforms)
4
5#include <string>
6#include <string_view>
7#include <optional>
8#include <cstdint>
9
11
16std::optional<std::string> registry_read_string(
17 std::string_view root, std::string_view path, std::string_view name);
18
20std::optional<uint32_t> registry_read_dword(
21 std::string_view root, std::string_view path, std::string_view name);
22
25 std::string_view root, std::string_view path,
26 std::string_view name, std::string_view value);
27
30 std::string_view root, std::string_view path,
31 std::string_view name, uint32_t value);
32
35 std::string_view root, std::string_view path, std::string_view name);
36
37} // namespace pulp::platform::win
Definition registry.hpp:10
bool registry_write_string(std::string_view root, std::string_view path, std::string_view name, std::string_view value)
Write a string value to the registry. Returns true on success.
bool registry_delete_value(std::string_view root, std::string_view path, std::string_view name)
Delete a value from the registry. Returns true on success.
std::optional< uint32_t > registry_read_dword(std::string_view root, std::string_view path, std::string_view name)
Read a DWORD value from the registry.
std::optional< std::string > registry_read_string(std::string_view root, std::string_view path, std::string_view name)
Read a string value from the registry.
bool registry_write_dword(std::string_view root, std::string_view path, std::string_view name, uint32_t value)
Write a DWORD value to the registry. Returns true on success.