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