mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
20 lines
480 B
C++
20 lines
480 B
C++
/*
|
|
* Copyright (C) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/windows/environment_variables.h"
|
|
|
|
#include "runtime/os_interface/debug_settings_manager.h"
|
|
|
|
#include <Windows.h>
|
|
|
|
uint32_t getEnvironmentVariable(const char *name, char *outBuffer, uint32_t outBufferSize) {
|
|
if (NEO::DebugManager.registryReadAvailable() == false) {
|
|
return 0;
|
|
}
|
|
return GetEnvironmentVariableA(name, outBuffer, outBufferSize);
|
|
}
|