Length Property
The Length property gets the bLength 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_Length(
[out] BYTE *pbLength
);
Property Value
A pointer to caller-allocated space to hold the length of the configuration data.
Error Codes
Length returns S_OK if the operation succeeds or E_POINTER if the pbLength parameter is not a valid pointer.
This property can also return other standard COM return values.
Remarks
The following C++ code example shows how to get the Length property.
HRESULT GetDescriptorLength(ISoftUSBConfiguration *piConfig, BYTE *pbLength)
{
return piConfig->get_Length(pbLength);
}
Requirements
Header |
SoftUSBif.h |
See Also
Send comments about this topic to Microsoft
Build date: 9/21/2010