Mercurial > hg > ucis.core
comparison USBLib/Internal/Windows/UsbApi.cs @ 58:fd63c453ff65
Improved Windows USB enumeration classes
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 09 Oct 2013 20:54:15 +0200 |
parents | dcfec2be27c9 |
children | edc41c861d96 |
comparison
equal
deleted
inserted
replaced
57:b1efeada517e | 58:fd63c453ff65 |
---|---|
337 public uint ConnectionIndex; | 337 public uint ConnectionIndex; |
338 public USB_SETUP_PACKET SetupPacket; | 338 public USB_SETUP_PACKET SetupPacket; |
339 //public byte[] Data; //UCHAR Data[0]; | 339 //public byte[] Data; //UCHAR Data[0]; |
340 } | 340 } |
341 | 341 |
342 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | 342 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] |
343 struct USB_NODE_CONNECTION_NAME { | 343 struct USB_NODE_CONNECTION_NAME { |
344 public uint ConnectionIndex; | 344 public uint ConnectionIndex; |
345 public uint ActualLength; | 345 public uint ActualLength; |
346 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = UsbApi.MAX_BUFFER_SIZE)] | 346 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = UsbApi.MAX_BUFFER_SIZE)] |
347 public string NodeName; //WCHAR NodeName[1]; | 347 public string NodeName; //WCHAR NodeName[1]; |
348 } | 348 } |
349 | 349 |
350 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | 350 [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] |
351 struct USB_NODE_CONNECTION_DRIVERKEY_NAME { | 351 struct USB_NODE_CONNECTION_DRIVERKEY_NAME { |
352 public uint ConnectionIndex; | 352 public uint ConnectionIndex; |
353 public uint ActualLength; | 353 public uint ActualLength; |
354 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = UsbApi.MAX_BUFFER_SIZE)] | 354 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = UsbApi.MAX_BUFFER_SIZE)] |
355 public string DriverKeyName; //WCHAR DriverKeyName[1]; | 355 public string DriverKeyName; //WCHAR DriverKeyName[1]; |