#pragma once
#include <Windows.h>
#include <cstdint>
#include <iostream>
#include "settings.hpp"

namespace reg
{
  DWORD read_key(const wchar_t* root_name, const wchar_t* value_name, uint32_t flags = 0);
  bool create_registry(const wchar_t* root_name, HKEY& hkey);
  bool set_keyval(HKEY& hkey, const wchar_t* value_name, DWORD value);
  bool set_keyval_bin(HKEY& hkey, const wchar_t* value_name, DWORD value);
}
