MaxPower Property

The MaxPower property gets or sets the bMaxPower field of the configuration descriptor, as described in section 9.6.3 of the USB 2.0 specification.

This property is read/write.

Syntax

HRESULT put_MaxPower(
  [in]           BYTE bMaxPower
);

HRESULT get_MaxPower(
  [out, retval]  BYTE *pbMaxPower
);

Property Value

The new bMaxPower value that is associated with the configuration.

Error Codes

MaxPower returns S_OK if the operation succeeds or E_POINTER if the pbMaxPower parameter is not a valid pointer.

Remarks

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

HRESULT GetMaxPower(ISoftUSBConfiguration *piConfig, BYTE *pbMaxPower)
{
 return piConfig->get_MaxPower(pbMaxPower);
}

Requirements

Header

SoftUSBif.h

See Also

ISoftUSBConfiguration

 

 

Send comments about this topic to Microsoft

Build date: 9/21/2010