Mercurial > hg > ucis.core
diff 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 |
line wrap: on
line diff
--- a/USBLib/Internal/Windows/UsbApi.cs Fri Oct 04 13:22:21 2013 +0200 +++ b/USBLib/Internal/Windows/UsbApi.cs Wed Oct 09 20:54:15 2013 +0200 @@ -339,7 +339,7 @@ //public byte[] Data; //UCHAR Data[0]; } - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] struct USB_NODE_CONNECTION_NAME { public uint ConnectionIndex; public uint ActualLength; @@ -347,7 +347,7 @@ public string NodeName; //WCHAR NodeName[1]; } - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] struct USB_NODE_CONNECTION_DRIVERKEY_NAME { public uint ConnectionIndex; public uint ActualLength;