GET_SELECT_CONFIGURATION_REQUEST_SIZE macro

The GET_SELECT_CONFIGURATION_REQUEST_SIZE macro returns the number of bytes required to create a select-configuration URB.

Syntax

ULONG GET_SELECT_CONFIGURATION_REQUEST_SIZE(
  [in] ULONG   TotalInterfaces,
  [in] ULONG   TotalPipes
);

Parameters

  • TotalInterfaces [in]
    Specifies how many interfaces the configuration has.

  • TotalPipes [in]
    Specifies how many endpoints (pipes) the configuration has.

Return value

GET_SELECT_CONFIGURATION_REQUEST_SIZE returns the number of bytes required to hold a select-configuration request with the given number of pipes and interfaces.

Requirements

Target platform

Desktop

Header

Usbdlib.h (include Usbdlib.h)

See also

URB

UsbBuildSelectConfigurationRequest

USBD_CreateConfigurationRequest

 

 

Send comments about this topic to Microsoft