/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright 2015 Danny Robson */ #ifndef __UTIL_WIN32_REGISTRY_HPP #define __UTIL_WIN32_REGISTRY_HPP #include #include #include namespace util::win32 { class key { public: key (HKEY root, const char *child, REGSAM rights = KEY_READ); ~key (); template T data (const char *name = nullptr) const; std::set values (void) const; private: HKEY m_handle; }; } #endif