Contents

FindNextInterfaceDescriptor

Declaration

virtual IOReturn FindNextInterfaceDescriptor(
 const IOUSBConfigurationDescriptor *configDescIn, 
 const IOUSBInterfaceDescriptor *intfDesc, 
 const IOUSBFindInterfaceRequest *request, 
 IOUSBInterfaceDescriptor **descOut);

Parameters

  • configDescIn:

    the configuration descriptor within which to search. obtained from GetFullConfigurationDescriptor(configIndex). use NULL to specify the current configuration's descriptor.

  • intfDesc:

    interface descriptor from which to start the search. NULL for the first interface descriptor in the given configuration descriptor

  • request:

    IOUSBFindInterfaceRequest specifying the desired interface. Not changed.

  • descOut:

    pointer to placeholder for the returned descriptor ptr

Return Value

returns kIOReturnBadArgument if configDesc is not correct, or if configDesc is NULL and the device is not configured, or if intfDesc is not in configDesc. Otherwise returns kIOReturnSuccess or kIOUSBInterfaceNotFound.

Overview

return a pointer to the next interface descriptor within the given full configuration descriptor satisfying the requirements specified, or NULL if there aren't any.

See Also

Miscellaneous