PUSB_BUSIFFN_GETUSBDI_VERSION callback function (usbbusif.h)

The GetUSBDIVersion routine returns the USB interface version number and the version number of the USB specification that defines the interface, along with information about host controller capabilities.

Note

USBD_IsInterfaceVersionSupported replaces the GetUSBDIVersion routine. To determine the capabilities of the host controller and the underlying USB driver stack, call USBD_QueryUsbCapability.

Syntax

typedef VOID
  (USB_BUSIFFN *PUSB_BUSIFFN_GETUSBDI_VERSION) (
    IN PVOID,
    IN OUT PUSBD_VERSION_INFORMATION,
    IN OUT PULONG 
  );

Parameters

[in] unnamedParam1

Handle returned in the BusContext member of the USB_BUS_INTERFACE_USBDI_V0 structure by an IRP_MN_QUERY_INTERFACE request.

[out, optional] unnamedParam2

Returns the host capability flags. Currently, no host capability flags are reported.

[out, optional] unnamedParam3

Returns a pointer to a USBD_VERSION_INFORMATION structure that contains the USB interface version number and the USB specification version number.

Return value

None

Remarks

The function returns the highest USBDI interface version supported by the port driver. This function replaces the USBD_GetUSBDIVersion library function provided by usbd.sys.

Requirements

Requirement Value
Target Platform Desktop
Header usbbusif.h (include Usbbusif.h)
IRQL < = DISPATCH_LEVEL

See also