2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-02-23 05:21:06 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/utilities/debug_settings_reader.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2018-07-02 00:44:29 +08:00
|
|
|
#include <Windows.h>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-02-27 18:39:32 +08:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <string>
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
class RegistryReader : public SettingsReader {
|
|
|
|
public:
|
2019-09-02 18:04:22 +08:00
|
|
|
RegistryReader() = delete;
|
|
|
|
RegistryReader(bool userScope, const std::string ®Key);
|
2017-12-21 07:45:38 +08:00
|
|
|
int32_t getSetting(const char *settingName, int32_t defaultValue) override;
|
|
|
|
bool getSetting(const char *settingName, bool defaultValue) override;
|
|
|
|
std::string getSetting(const char *settingName, const std::string &value) override;
|
2018-10-10 22:02:19 +08:00
|
|
|
const char *appSpecificLocation(const std::string &name) override;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-07-02 00:44:29 +08:00
|
|
|
protected:
|
2019-09-02 18:04:22 +08:00
|
|
|
HKEY igdrclHkeyType;
|
|
|
|
std::string registryReadRootKey;
|
2018-10-10 22:02:19 +08:00
|
|
|
void setUpProcessName();
|
|
|
|
std::string processName;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|