다음을 통해 공유


UsbBuildSelectConfigurationRequest macro

The UsbBuildSelectConfigurationRequest macro formats an URB with the parameters necessary to select a configuration on a USB device.

Syntax

void UsbBuildSelectConfigurationRequest(
  [in] PURB                          Urb,
  [in] USHORT                        Length,
  [in] PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor
);

Parameters

  • Urb [in]
    Pointer to an URB to be formatted as a select configuration request.

  • Length [in]
    Specifies the size, in bytes, of the URB.

  • ConfigurationDescriptor [in]
    Pointer to an initialized USB configuration descriptor that identifies the configuration to be set on the device. If NULL, the device will be set into its unconfigured state.

Return value

This macro does not return a value.

Requirements

Target platform

Desktop

Header

Usbdlib.h (include Usbdlib.h)

See also

URB

_URB_SELECT_CONFIGURATION

USB_CONFIGURATION_DESCRIPTOR

USB device driver programming reference

 

 

Send comments about this topic to Microsoft