IOUSBHostInterface
A provider object that manages interactions with an interface of the USB device.
Declaration
class IOUSBHostInterface;Overview
An IOUSBHostInterface object represents one of the interfaces the USB device supports. When implementing a custom driver, use an IOUSBHostInterface object to get information about the specific interface and to communicate with the device using that interface.
Typically, you don’t create IOUSBHostInterface objects directly. During configuration of your driver, you can specify that your driver relies on an IOUSBHostInterface as its provider, in which case the system creates the object for you automatically during the matching process. Alternatively, if your driver uses an IOUSBHostDevice object as its provider, you can iterate over all of the device’s interfaces to retrieve the specific IOUSBHostInterface object you need.
To use a host interface object, call Open to create a new session between the interface and your driver. After successfully opening your session, you can request information from the interface and set up pipes to communicate with the interface’s endpoints. Remember to close the session you opened in the Stop method of your driver.