WinUsb_QueryDeviceInformation
C# Signature:
[DllImport("winusb.dll", SetLastError=true)]
static extern Boolean WinUsb_QueryDeviceInformation(
SafeFileHandle InterfaceHandle,
UInt32 InformationType,
ref UInt32 BufferLength,
byte[] Buffer);
VB Signature:
Declare Function WinUsb_QueryDeviceInformation Lib "winusb.dll" (TODO) As TODO
User-Defined Types:
const ULONG DEVICE_SPEED = 1;
Sample Code:
UInt32 bufferLength = 100;
byte[] buffer = new byte[bufferLength];
var success = WinUsb_QueryDeviceInformation(_winUsbHandle, DEVICE_SPEED, ref bufferLength, buffer);
Última actualización