Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content

UsbBuildOsFeatureDescriptorRequest macro

The UsbBuildOsFeatureDescriptorRequest macro formats an URB to request a Microsoft OS feature descriptor.


void UsbBuildOsFeatureDescriptorRequest(
  [in, out]      PURB       Urb,
  [in]           USHORT     Length,
  [in]           UCHAR      Interface,
  [in]           USHORT     Index,
  [in, optional] PVOID      TransferBuffer  ,
  [in, optional] PMDL       TransferBufferMDL    ,
  [in]           ULONG      TransferBufferLength


Urb [in, out]

Pointer to a caller-allocated URB structure to be formatted as a request for a Microsoft OS feature descriptor.

Length [in]

Specifies the size, in bytes, of the URB structure.

Interface [in]

Specifies the interface number for the requested Microsoft OS feature descriptor.

Index [in]

Specifies the index number of the requested Microsoft OS feature descriptor.

TransferBuffer [in, optional]

Pointer to a resident buffer that receives the descriptor data. If an MDL is supplied in TransferBufferMDL, then TransferBuffer is NULL.

TransferBufferMDL [in, optional]

Pointer to an MDL that describes a resident buffer that receives the descriptor. If a buffer is supplied in TransferBuffer, then TransferBufferMDL is NULL. The MDL must be allocated from nonpaged pool.

TransferBufferLength [in]

Specifies the length, in bytes, of the buffer specified in TransferBuffer or TransferBufferMDL.

Return value

This macro does not return a value.


Target platform



Usbdlib.h (include Usbdlib.h)

See also

Routines for USB Client Drivers



Send comments about this topic to Microsoft

© 2015 Microsoft