ホーム › Devices.Usb › USB_DEVICE_INFO
USB_DEVICE_INFO
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 |
|---|---|---|---|---|
| DeviceState | USB_DEVICE_STATE | 4 | +0 | +0 |
| PortNumber | WORD | 2 | +4 | +4 |
| DeviceDescriptor | USB_DEVICE_DESCRIPTOR | 18 | +6 | +6 |
| CurrentConfigurationValue | BYTE | 1 | +24 | +24 |
| Speed | USB_DEVICE_SPEED | 4 | +25 | +25 |
| DeviceAddress | WORD | 2 | +29 | +29 |
| ConnectionIndex | DWORD | 4 | +31 | +31 |
| ConnectionStatus | USB_CONNECTION_STATUS | 4 | +35 | +35 |
| PnpHardwareId | WCHAR | 256 | +39 | +39 |
| PnpCompatibleId | WCHAR | 256 | +295 | +295 |
| SerialNumberId | WCHAR | 256 | +551 | +551 |
| PnpDeviceDescription | WCHAR | 256 | +807 | +807 |
| NumberOfOpenPipes | DWORD | 4 | +1063 | +1063 |
| PipeList | USB_PIPE_INFO | 11 | +1067 | +1067 |