USB_DRIVER_SETTINGS

This structure contains the members for USB drivers.

Syntax

typedef struct {
DWORD dwCount;
DWORD dwVendorId;
DWORD dwProductId;
DWORD dwReleaseNumber;
DWORD dwDeviceClass;
DWORD dwDeviceSubClass;
DWORD dwDeviceProtocol;
DWORD dwInterfaceClass;
DWORD dwInterfaceSubClass;
DWORD dwInterfaceProtocol;
} USB_DRIVER_SETTINGS;

Members

dwCount
Specifies the size, in bytes, of the structure.
dwVendorId
Specifies the vendor identifier in the device descriptor.
dwProductId
Specifies the product identifier in the device descriptor.
dwReleaseNumber
Specifies the release number in the device descriptor.
dwDeviceClass
Specifies the device class in the device descriptor.
dwDeviceSubClass
Specifies the device subclass in the device descriptor.
dwDeviceProtocol
Specifies the protocol in the device descriptor.
dwInterfaceClass
Specifies the class in the interface descriptor.
dwInterfaceSubClass
Specifies the subclass in the interface descriptor.
dwInterfaceProtocol
Specifies the protocol in the interface descriptor.

Remarks

This structure is passed to the RegisterClientSettings function to enable the USBD module to recognize a USB driver. The contents of this structure control how the USBD module matches this driver against the members of actual USB devices at the time when a device is connected to a Windows CE–based platform. Any of the members may be set to USB_NO_INFO, which indicates that the driver is loaded by default if all other members match and no other driver is a better match. This structure is declared in the Usbdi.h header file.