2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 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
|
|
|
|
|
|
|
|
#include "runtime/utilities/debug_settings_reader.h"
|
2018-10-10 22:02:19 +08:00
|
|
|
#include "os_inc.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <string>
|
|
|
|
#include <stdint.h>
|
2018-07-02 00:44:29 +08:00
|
|
|
#include <Windows.h>
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
class RegistryReader : public SettingsReader {
|
|
|
|
public:
|
|
|
|
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-11-30 18:51:49 +08:00
|
|
|
RegistryReader(bool userScope);
|
|
|
|
RegistryReader(const std::string ®Key);
|
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:
|
|
|
|
HKEY igdrclHkeyType = HKEY_LOCAL_MACHINE;
|
2018-10-10 22:02:19 +08:00
|
|
|
std::string registryReadRootKey = "Software\\Intel\\IGFX\\OCL";
|
|
|
|
void setUpProcessName();
|
|
|
|
std::string processName;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
|
|
|
} // namespace OCLRT
|