LoadGenericInterfaceDriver

This function is called by USB drivers to load drivers for other interfaces on a device.

Syntax

BOOL LoadGenericInterfaceDriver( USB_HANDLE hDevice, LPCUSB_INTERFACE lpInterface );

Parameters

hDevice
[IN] Handle to a USB device, which is passed in the USBDeviceAttach function.
lpInterface
[IN] Pointer to a USB_INTERFACE structure for an interface.

Return Values

TRUE indicates that a driver was successfully loaded for an interface. FALSE indicates failure.

Remarks

If a client accepts control of a device, this function must be called to load a driver for any uncontrolled interfaces.

This function is defined in the Mousedrv.cpp file.