ISoftUSBConfigurations::Clear Method
The Clear method removes all objects from a collection of SoftUSBConfiguration objects.
Syntax
HRESULT Clear();
Parameters
This method has no parameters.
Return Value
Clear returns an HRESULT value. This method returns S_OK if the list was correctly cleared.
Remarks
The following C++ code example shows how to remove all items from a ISoftUSBConfigurations collection.
HRESULT CTestDevice::ClearConfigCollection()
{
HRESULT hr = S_OK;
ISoftUSBConfigurationList *piConfigList = NULL;
// Get the configuration list
hr = m_piDevice->get_Configurations(&piConfigList)
if(!FAILED(hr))
{
// Clear the configuration list
hr = piConfigList->Clear();
}
return hr;
}
Requirements
Header |
SoftUSBif.h |
Send comments about this topic to Microsoft
Build date: 9/21/2010