@@ -33,7 +33,9 @@ class Configuration
3333 // Unfortunately our traditional config system insists on interpreting numbers as 32-bit so interpret the config
3434 // in the traditional way separately if you need to.
3535 //
36- // Returns value for name if found in config.
36+ // Returns (in priority order):
37+ // - The value of the ConfigurationKnob (searched by name) if it's set (performs a _wcstoui64)
38+ // - The default value passed in
3739 static ULONGLONG GetKnobULONGLONGValue (LPCWSTR name, ULONGLONG defaultValue);
3840
3941 // Returns (in priority order):
@@ -48,11 +50,17 @@ class Configuration
4850 static LPCWSTR GetKnobStringValue (LPCWSTR name);
4951
5052 // Returns (in priority order):
51- // - The value of the ConfigDWORDInfo if it's set (1 is true , anything else is false )
53+ // - The value of the ConfigDWORDInfo if it's set (0 is false , anything else is true )
5254 // - The value of the ConfigurationKnob (searched by name) if it's set (performs a wcscmp with "true").
53- // - The default set in the ConfigDWORDInfo (1 is true , anything else is false )
55+ // - The default set in the ConfigDWORDInfo (0 is false , anything else is true )
5456 static bool GetKnobBooleanValue (LPCWSTR name, const CLRConfig::ConfigDWORDInfo& dwordInfo);
5557
58+ // Returns (in priority order):
59+ // - The value of the ConfigDWORDInfo if it's set (0 is false, anything else is true)
60+ // - The value of the ConfigurationKnob (searched by name) if it's set (performs a wcscmp with "true").
61+ // - The default value passed in
62+ static bool GetKnobBooleanValue (LPCWSTR name, const CLRConfig::ConfigDWORDInfo& dwordInfo, bool defaultValue);
63+
5664 // Returns (in priority order):
5765 // - The value of the ConfigurationKnob (searched by name) if it's set (performs a wcscmp with "true").
5866 // - The default value passed in
0 commit comments