in src/fc_package.c [162:193]
HRESULT IFabricConfigurationPackage_GetSection(FC_PACKAGE_HANDLE fc_package_handle,
LPCWSTR sectionName,
const FABRIC_CONFIGURATION_SECTION** bufferedValue
)
{
HRESULT hr;
if (
(fc_package_handle == NULL) ||
(sectionName == NULL) ||
(bufferedValue == NULL)
)
{
LogError("invalid argument");
hr = E_INVALIDARG;
}
else
{
ULONG i;
for (i = 0; i < fc_package_handle->fabric_configuration_settings.Sections->Count; i++)
{
if (wcscmp(sectionName, fc_package_handle->fabric_configuration_settings.Sections->Items[i].Name) == 0)
{
*bufferedValue = fc_package_handle->fabric_configuration_settings.Sections->Items + i;
return S_OK;
}
}
hr = E_NOT_SET; /*this is NOT_FOUND in HRESULT */
}
return hr;
}