1// Licensed to the .NET Foundation under one or more agreements.
2// The .NET Foundation licenses this file to you under the MIT license.
3// See the LICENSE file in the project root for more information.
4//
5// File: clrconfiguration.cpp
6//
7
8#include "common.h"
9#include "clrconfignative.h"
10#include <configuration.h>
11
12BOOL QCALLTYPE ClrConfigNative::GetConfigBoolValue(LPCWSTR name, BOOL *exist)
13{
14 QCALL_CONTRACT;
15
16 BOOL retValue = FALSE;
17 *exist = FALSE;
18 BEGIN_QCALL;
19
20 if (Configuration::GetKnobStringValue(name) != nullptr)
21 {
22 *exist = TRUE;
23 retValue = Configuration::GetKnobBooleanValue(name, FALSE);
24 }
25 END_QCALL;
26 return(retValue);
27}
28