Configurations Property
The Configurations property gets a ISoftUSBConfigurations object that holds the collection of ISoftUSBConfiguration objects that represent the set of configurations that a device supports.
This property is read-only.
Syntax
HRESULT get_Configurations(
[out, retval] ISoftUSBConfigurations **ppiConfigurationList
);
Property Value
Caller-allocated space to hold the configuration collection.
Error Codes
Configurations returns S_OK if the operation succeeds or E_POINTER if the ppiConfigurationList parameter is not a valid pointer.
Remarks
The following C++ code example shows how to get the Configurations property.
HRESULT CLoopBackDevice::GetCurrentConfig(ISoftUSBConfigurations **ppiConfigList)
{
HRESULT hr = OK:
if (NULL == m_piDevice)
{
hr = E_UNEXPECTED;
goto Exit;
}
if (NULL == ppiConfigList)
{
hr = E_POINTER;
goto Exit;
}
// Initialize the return parameter
*ppiConfigList = NULL;
// Get the configuration list
hr = m_piDevice ->get_Configurations(reinterpret_cast< SoftUSBConfigurations **>(&piConfigList));
Exit:
return hr;
}
Requirements
Header |
SoftUSBif.h |
See Also
Send comments about this topic to Microsoft
Build date: 9/21/2010