Good question that’s been in there for some time.
I think I found those in config.cpp but from there to linking into the other source bits I’m not entirely certain.
https://gitlab.special-k.info/Kaldaien/SpecialK/-/blob/0.11.liberated/src/config.cpp
ConfigEntry (nvidia.api.disable, L"Disable NvAPI", dll_ini, L"NVIDIA.API", L"Disable"),
ConfigEntry (nvidia.api.disable_hdr, L"Prevent Game from Using NvAPI HDR Features", dll_ini, L"NVIDIA.API", L"DisableHDR"),
ConfigEntry (nvidia.bugs.snuffed_ansel, L"By default, Special K disables Ansel at first launch, but"
L" users have an option under 'Help|..' to turn it back on.", dll_ini, L"NVIDIA.Bugs", L"AnselSleepsWithFishes"),
ConfigEntry (nvidia.sli.compatibility, L"SLI Compatibility Bits", dll_ini, L"NVIDIA.SLI", L"CompatibilityBits"),
ConfigEntry (nvidia.sli.num_gpus, L"SLI GPU Count", dll_ini, L"NVIDIA.SLI", L"NumberOfGPUs"),
ConfigEntry (nvidia.sli.mode, L"SLI Mode", dll_ini, L"NVIDIA.SLI", L"Mode"),
ConfigEntry (nvidia.sli.override, L"Override Driver Defaults", dll_ini, L"NVIDIA.SLI", L"Override"),
ConfigEntry (amd.adl.disable, L"Disable AMD's ADL library", dll_ini, L"AMD.ADL", L"Disable"),
EDIT: There’s been a lot of code shuffling and cleanup after all and some of these are pretty old, I would think it’s one of the D3D11 source files but I don’t think I’ve ever dug up exactly where these are from.
EDIT: Well if the function is named disable_hdr I can use that as a search term and it’s results.
Yeah it’s actually in NVAPI.cpp and then a small mention in Sekiro.cpp which is in the plugins folder. 
EDIT: Sekiro just seem to be a plugin specific checkbox maybe that’s where this originated from but I don’t think anything is set by default so no Sekiro deadlocking from trying to do some forced disabling of NVAPI or NVAPI’s HDR mode.
I’m not much of a coder though but the main functionality seem to be in NVAPI.cpp
Should go through these more thoroughly at some point I occasionally use these to do config cleanup without making a completely new blank preset.
(Though this is a good idea once in a while for getting new optimal default values for some of these settings.)
And for config parameter I believe that’s been primarily from developments in the framerate limiter through the last few releases of SpecialK which has overhauled it quite a bit from the previous versions now.
(Limiter tolerance for example for one removed setting and the two sleepless options defaulting to false now for a example of a change of default settings.)
EDIT: Should get a HDR display while at it, at some point I’ll have some fun with this too. 