Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

USB_HUB_DESCRIPTOR (Structures)
 
.
Summary
Used with DeviceIoControl and IOCTL_USB_GET_NODE_INFORMATION to get information about a USB Hub

C# Definition:

[StructLayout(LayoutKind.Sequential, Pack=1)]
struct USB_HUB_DESCRIPTOR
{
   public byte bDescriptorLength;
   public byte bDescriptorType;
   public byte bNumberOfPorts;
   public short wHubCharacteristics;
   public byte bPowerOnToPowerGood;
   public byte bHubControlCurrent;
   [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
   public byte[] bRemoveAndPowerMask;
}

VB Definition:

Structure USB_HUB_DESCRIPTOR
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

This structure is often nested inside the USB_HUB_INFORMATION structure, hence the need for the "pack=1"

typedef struct _USB_HUB_DESCRIPTOR {
   UCHAR  bDescriptorLength;
   UCHAR  bDescriptorType;
   UCHAR  bNumberOfPorts;
   USHORT  wHubCharacteristics;
   UCHAR  bPowerOnToPowerGood;
   UCHAR  bHubControlCurrent;
   UCHAR  bRemoveAndPowerMask[64];
} USB_HUB_DESCRIPTOR, *PUSB_HUB_DESCRIPTOR;

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions