Tech Support > Microsoft Windows > Drivers > Re: USBD_INTERFACE_INFORMATION question
Re: USBD_INTERFACE_INFORMATION question
Posted by Tim Roberts on September 11th, 2004


shadab <shadab@discussions.microsoft.com> wrote:

If it were a pointer, it would either be PUSBD_INTERFACE_INFORMATION, or it
would be USBD_INTERFACE_INFORMATION*.

No, it's just what it says. "Interface" is the first element of what might
be an array of entries. You get to the other elements like this:

PUSBD_INTERFACE_INFORMATION* Interfaces =
&(urb->UrbSelectConfiguration.Interface);

This is why you use UsbBuildSelectConfigurationRequest to build the URB: so
the structure gets allocated large enough.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc