Contents

CopyInterface

Gets the next host interface child associated with this device.

Declaration

virtual kern_return_t CopyInterface(uintptr_t ref, IOUSBHostInterface **interface);

Parameters

  • ref:

    The opaque iterator reference you received from the Createinterfaceiterator method.

  • interface:

    A pointer to a variable. On output, this variable contains a pointer to the next Iousbhostinterface object. When there are no more iterfaces, this method assigns NULL to the variable.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

Discussion

Keep calling this method until the value in the interface parameter is NULL.

See Also

Iterating Over the Device Interfaces