1 /*
2  * Copyright (C) 2020-2021 Intel Corporation
3  *
4  * SPDX-License-Identifier: MIT
5  *
6  */
7 
8 #include "shared/source/os_interface/windows/environment_variables.h"
9 
10 #include "shared/source/debug_settings/debug_settings_manager.h"
11 
12 #include <windows.h>
13 
getEnvironmentVariable(const char * name,char * outBuffer,uint32_t outBufferSize)14 uint32_t getEnvironmentVariable(const char *name, char *outBuffer, uint32_t outBufferSize) {
15     if (NEO::DebugManager.registryReadAvailable() == false) {
16         return 0;
17     }
18     return GetEnvironmentVariableA(name, outBuffer, outBufferSize);
19 }
20