DescriptorType Property

The DescriptorType property gets the bDescriptorType field of the configuration descriptor, as described in section 9.6.3 of the USB 2.0 specification

This property is read-only.

Syntax

HRESULT get_DescriptorType(
  [out]  BYTE *pbDescriptorType
);

Property Value

A pointer to caller-allocated space to hold the descriptor type.

Error Codes

DescriptorType returns S_OK if the operation succeeds or E_POINTER if the pbDescriptorType parameter is not a valid pointer.

This property can also return other standard COM return values.

Remarks

The DescriptorType property is provided for informational purposes and always returns 2 per section 9.6.3. and table 9-5 of the USB 2.0 specification.

Examples

The following C++ code example shows how to get the DescriptorType property.

 HRESULT GetDescriptorType(ISoftUSBConfiguration *piConfig, BYTE *pbDescriptorType)
{
 return piConfig->get_DescriptorType(pbDescriptorType);
}

Requirements

Header

SoftUSBif.h

 

 

Send comments about this topic to Microsoft

Build date: 9/21/2010