Now using spaces instead of tabs for indentation.
authorStephaneLenclud
Sat, 14 Feb 2015 22:13:31 +0100
changeset 515f1f1053a595
parent 50 e6c103ebb155
child 52 2f34ceaf0692
Now using spaces instead of tabs for indentation.
.editorconfig
Win32Hid.cs
     1.1 --- a/.editorconfig	Sat Feb 14 22:11:36 2015 +0100
     1.2 +++ b/.editorconfig	Sat Feb 14 22:13:31 2015 +0100
     1.3 @@ -7,6 +7,6 @@
     1.4  
     1.5  ; 4-column tab indentation
     1.6  [*.cs]
     1.7 -indent_style = tab
     1.8 +indent_style = space
     1.9  indent_size = 4
    1.10  
     2.1 --- a/Win32Hid.cs	Sat Feb 14 22:11:36 2015 +0100
     2.2 +++ b/Win32Hid.cs	Sat Feb 14 22:13:31 2015 +0100
     2.3 @@ -20,27 +20,27 @@
     2.4          [DllImport("hid.dll", CharSet = CharSet.Auto, SetLastError = true)]
     2.5          public static extern Boolean HidD_GetAttributes(SafeFileHandle HidDeviceObject, ref HIDD_ATTRIBUTES Attributes);
     2.6  
     2.7 -		/// Return Type: NTSTATUS->LONG->int
     2.8 -		///PreparsedData: PHIDP_PREPARSED_DATA->_HIDP_PREPARSED_DATA*
     2.9 -		///Capabilities: PHIDP_CAPS->_HIDP_CAPS*
    2.10 -		[DllImportAttribute("hid.dll", EntryPoint = "HidP_GetCaps", CallingConvention = CallingConvention.StdCall)]
    2.11 -		public static extern int HidP_GetCaps(System.IntPtr PreparsedData, ref HIDP_CAPS Capabilities);
    2.12 +        /// Return Type: NTSTATUS->LONG->int
    2.13 +        ///PreparsedData: PHIDP_PREPARSED_DATA->_HIDP_PREPARSED_DATA*
    2.14 +        ///Capabilities: PHIDP_CAPS->_HIDP_CAPS*
    2.15 +        [DllImportAttribute("hid.dll", EntryPoint = "HidP_GetCaps", CallingConvention = CallingConvention.StdCall)]
    2.16 +        public static extern int HidP_GetCaps(System.IntPtr PreparsedData, ref HIDP_CAPS Capabilities);
    2.17  
    2.18 -		/// Return Type: NTSTATUS->LONG->int
    2.19 -		///ReportType: HIDP_REPORT_TYPE->_HIDP_REPORT_TYPE
    2.20 -		///ButtonCaps: PHIDP_BUTTON_CAPS->_HIDP_BUTTON_CAPS*
    2.21 -		///ButtonCapsLength: PUSHORT->USHORT*
    2.22 -		///PreparsedData: PHIDP_PREPARSED_DATA->_HIDP_PREPARSED_DATA*
    2.23 -		[System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint = "HidP_GetButtonCaps", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
    2.24 -		public static extern int HidP_GetButtonCaps(HIDP_REPORT_TYPE ReportType, ref HIDP_BUTTON_CAPS ButtonCaps, ref ushort ButtonCapsLength, System.IntPtr PreparsedData);
    2.25 +        /// Return Type: NTSTATUS->LONG->int
    2.26 +        ///ReportType: HIDP_REPORT_TYPE->_HIDP_REPORT_TYPE
    2.27 +        ///ButtonCaps: PHIDP_BUTTON_CAPS->_HIDP_BUTTON_CAPS*
    2.28 +        ///ButtonCapsLength: PUSHORT->USHORT*
    2.29 +        ///PreparsedData: PHIDP_PREPARSED_DATA->_HIDP_PREPARSED_DATA*
    2.30 +        [System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint = "HidP_GetButtonCaps", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
    2.31 +        public static extern int HidP_GetButtonCaps(HIDP_REPORT_TYPE ReportType, ref HIDP_BUTTON_CAPS ButtonCaps, ref ushort ButtonCapsLength, System.IntPtr PreparsedData);
    2.32  
    2.33 -		/// Return Type: NTSTATUS->LONG->int
    2.34 -		///ReportType: HIDP_REPORT_TYPE->_HIDP_REPORT_TYPE
    2.35 -		///ValueCaps: PHIDP_VALUE_CAPS->_HIDP_VALUE_CAPS*
    2.36 -		///ValueCapsLength: PUSHORT->USHORT*
    2.37 -		///PreparsedData: PHIDP_PREPARSED_DATA->_HIDP_PREPARSED_DATA*
    2.38 -		[System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint = "HidP_GetValueCaps", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
    2.39 -		public static extern int HidP_GetValueCaps(HIDP_REPORT_TYPE ReportType, ref HIDP_VALUE_CAPS ValueCaps, ref ushort ValueCapsLength, System.IntPtr PreparsedData);
    2.40 +        /// Return Type: NTSTATUS->LONG->int
    2.41 +        ///ReportType: HIDP_REPORT_TYPE->_HIDP_REPORT_TYPE
    2.42 +        ///ValueCaps: PHIDP_VALUE_CAPS->_HIDP_VALUE_CAPS*
    2.43 +        ///ValueCapsLength: PUSHORT->USHORT*
    2.44 +        ///PreparsedData: PHIDP_PREPARSED_DATA->_HIDP_PREPARSED_DATA*
    2.45 +        [System.Runtime.InteropServices.DllImportAttribute("<Unknown>", EntryPoint = "HidP_GetValueCaps", CallingConvention = System.Runtime.InteropServices.CallingConvention.StdCall)]
    2.46 +        public static extern int HidP_GetValueCaps(HIDP_REPORT_TYPE ReportType, ref HIDP_VALUE_CAPS ValueCaps, ref ushort ValueCapsLength, System.IntPtr PreparsedData);
    2.47  
    2.48      }
    2.49  
    2.50 @@ -109,332 +109,333 @@
    2.51      }
    2.52  
    2.53  
    2.54 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
    2.55 -	public struct HIDP_CAPS
    2.56 -	{
    2.57 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
    2.58 +    public struct HIDP_CAPS
    2.59 +    {
    2.60  
    2.61 -		/// USAGE->USHORT->unsigned short
    2.62 -		public ushort Usage;
    2.63 +        /// USAGE->USHORT->unsigned short
    2.64 +        public ushort Usage;
    2.65  
    2.66 -		/// USAGE->USHORT->unsigned short
    2.67 -		public ushort UsagePage;
    2.68 +        /// USAGE->USHORT->unsigned short
    2.69 +        public ushort UsagePage;
    2.70  
    2.71 -		/// USHORT->unsigned short
    2.72 -		public ushort InputReportByteLength;
    2.73 +        /// USHORT->unsigned short
    2.74 +        public ushort InputReportByteLength;
    2.75  
    2.76 -		/// USHORT->unsigned short
    2.77 -		public ushort OutputReportByteLength;
    2.78 +        /// USHORT->unsigned short
    2.79 +        public ushort OutputReportByteLength;
    2.80  
    2.81 -		/// USHORT->unsigned short
    2.82 -		public ushort FeatureReportByteLength;
    2.83 +        /// USHORT->unsigned short
    2.84 +        public ushort FeatureReportByteLength;
    2.85  
    2.86 -		/// USHORT[17]
    2.87 -		[System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 17, ArraySubType = System.Runtime.InteropServices.UnmanagedType.U2)]
    2.88 -		public ushort[] Reserved;
    2.89 +        /// USHORT[17]
    2.90 +        [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 17, ArraySubType = System.Runtime.InteropServices.UnmanagedType.U2)]
    2.91 +        public ushort[] Reserved;
    2.92  
    2.93 -		/// USHORT->unsigned short
    2.94 -		public ushort NumberLinkCollectionNodes;
    2.95 +        /// USHORT->unsigned short
    2.96 +        public ushort NumberLinkCollectionNodes;
    2.97  
    2.98 -		/// USHORT->unsigned short
    2.99 -		public ushort NumberInputButtonCaps;
   2.100 +        /// USHORT->unsigned short
   2.101 +        public ushort NumberInputButtonCaps;
   2.102  
   2.103 -		/// USHORT->unsigned short
   2.104 -		public ushort NumberInputValueCaps;
   2.105 +        /// USHORT->unsigned short
   2.106 +        public ushort NumberInputValueCaps;
   2.107  
   2.108 -		/// USHORT->unsigned short
   2.109 -		public ushort NumberInputDataIndices;
   2.110 +        /// USHORT->unsigned short
   2.111 +        public ushort NumberInputDataIndices;
   2.112  
   2.113 -		/// USHORT->unsigned short
   2.114 -		public ushort NumberOutputButtonCaps;
   2.115 +        /// USHORT->unsigned short
   2.116 +        public ushort NumberOutputButtonCaps;
   2.117  
   2.118 -		/// USHORT->unsigned short
   2.119 -		public ushort NumberOutputValueCaps;
   2.120 +        /// USHORT->unsigned short
   2.121 +        public ushort NumberOutputValueCaps;
   2.122  
   2.123 -		/// USHORT->unsigned short
   2.124 -		public ushort NumberOutputDataIndices;
   2.125 +        /// USHORT->unsigned short
   2.126 +        public ushort NumberOutputDataIndices;
   2.127  
   2.128 -		/// USHORT->unsigned short
   2.129 -		public ushort NumberFeatureButtonCaps;
   2.130 +        /// USHORT->unsigned short
   2.131 +        public ushort NumberFeatureButtonCaps;
   2.132  
   2.133 -		/// USHORT->unsigned short
   2.134 -		public ushort NumberFeatureValueCaps;
   2.135 +        /// USHORT->unsigned short
   2.136 +        public ushort NumberFeatureValueCaps;
   2.137  
   2.138 -		/// USHORT->unsigned short
   2.139 -		public ushort NumberFeatureDataIndices;
   2.140 -	}
   2.141 +        /// USHORT->unsigned short
   2.142 +        public ushort NumberFeatureDataIndices;
   2.143 +    }
   2.144  
   2.145 -	/// <summary>
   2.146 -	/// Type created in place of an anonymous struct
   2.147 -	/// </summary>
   2.148 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.149 -	public struct HIDP_BUTTON_CAPS_RANGE
   2.150 -	{
   2.151 +    /// <summary>
   2.152 +    /// Type created in place of an anonymous struct
   2.153 +    /// </summary>
   2.154 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.155 +    public struct HIDP_BUTTON_CAPS_RANGE
   2.156 +    {
   2.157  
   2.158 -		/// USAGE->USHORT->unsigned short
   2.159 -		public ushort UsageMin;
   2.160 +        /// USAGE->USHORT->unsigned short
   2.161 +        public ushort UsageMin;
   2.162  
   2.163 -		/// USAGE->USHORT->unsigned short
   2.164 -		public ushort UsageMax;
   2.165 +        /// USAGE->USHORT->unsigned short
   2.166 +        public ushort UsageMax;
   2.167  
   2.168 -		/// USHORT->unsigned short
   2.169 -		public ushort StringMin;
   2.170 +        /// USHORT->unsigned short
   2.171 +        public ushort StringMin;
   2.172  
   2.173 -		/// USHORT->unsigned short
   2.174 -		public ushort StringMax;
   2.175 +        /// USHORT->unsigned short
   2.176 +        public ushort StringMax;
   2.177  
   2.178 -		/// USHORT->unsigned short
   2.179 -		public ushort DesignatorMin;
   2.180 +        /// USHORT->unsigned short
   2.181 +        public ushort DesignatorMin;
   2.182  
   2.183 -		/// USHORT->unsigned short
   2.184 -		public ushort DesignatorMax;
   2.185 +        /// USHORT->unsigned short
   2.186 +        public ushort DesignatorMax;
   2.187  
   2.188 -		/// USHORT->unsigned short
   2.189 -		public ushort DataIndexMin;
   2.190 +        /// USHORT->unsigned short
   2.191 +        public ushort DataIndexMin;
   2.192  
   2.193 -		/// USHORT->unsigned short
   2.194 -		public ushort DataIndexMax;
   2.195 -	}
   2.196 +        /// USHORT->unsigned short
   2.197 +        public ushort DataIndexMax;
   2.198 +    }
   2.199  
   2.200 -	/// <summary>
   2.201 -	/// Type created in place of an anonymous struct
   2.202 -	/// </summary>
   2.203 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.204 -	public struct HIDP_BUTTON_CAPS_NOT_RANGE
   2.205 -	{
   2.206 +    /// <summary>
   2.207 +    /// Type created in place of an anonymous struct
   2.208 +    /// </summary>
   2.209 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.210 +    public struct HIDP_BUTTON_CAPS_NOT_RANGE
   2.211 +    {
   2.212  
   2.213 -		/// USAGE->USHORT->unsigned short
   2.214 -		public ushort Usage;
   2.215 +        /// USAGE->USHORT->unsigned short
   2.216 +        public ushort Usage;
   2.217  
   2.218 -		/// USAGE->USHORT->unsigned short
   2.219 -		public ushort Reserved1;
   2.220 +        /// USAGE->USHORT->unsigned short
   2.221 +        public ushort Reserved1;
   2.222  
   2.223 -		/// USHORT->unsigned short
   2.224 -		public ushort StringIndex;
   2.225 +        /// USHORT->unsigned short
   2.226 +        public ushort StringIndex;
   2.227  
   2.228 -		/// USHORT->unsigned short
   2.229 -		public ushort Reserved2;
   2.230 +        /// USHORT->unsigned short
   2.231 +        public ushort Reserved2;
   2.232  
   2.233 -		/// USHORT->unsigned short
   2.234 -		public ushort DesignatorIndex;
   2.235 +        /// USHORT->unsigned short
   2.236 +        public ushort DesignatorIndex;
   2.237  
   2.238 -		/// USHORT->unsigned short
   2.239 -		public ushort Reserved3;
   2.240 +        /// USHORT->unsigned short
   2.241 +        public ushort Reserved3;
   2.242  
   2.243 -		/// USHORT->unsigned short
   2.244 -		public ushort DataIndex;
   2.245 +        /// USHORT->unsigned short
   2.246 +        public ushort DataIndex;
   2.247  
   2.248 -		/// USHORT->unsigned short
   2.249 -		public ushort Reserved4;
   2.250 -	}
   2.251 +        /// USHORT->unsigned short
   2.252 +        public ushort Reserved4;
   2.253 +    }
   2.254  
   2.255 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
   2.256 -	public struct HIDP_BUTTON_CAPS_UNION
   2.257 -	{
   2.258 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
   2.259 +    public struct HIDP_BUTTON_CAPS_UNION
   2.260 +    {
   2.261  
   2.262 -		/// 
   2.263 -		[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.264 -		public HIDP_BUTTON_CAPS_RANGE Range;
   2.265 +        /// 
   2.266 +        [System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.267 +        public HIDP_BUTTON_CAPS_RANGE Range;
   2.268  
   2.269 -		/// 
   2.270 -		[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.271 -		public HIDP_BUTTON_CAPS_NOT_RANGE NotRange;
   2.272 -	}
   2.273 +        /// 
   2.274 +        [System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.275 +        public HIDP_BUTTON_CAPS_NOT_RANGE NotRange;
   2.276 +    }
   2.277  
   2.278 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.279 -	public struct HIDP_BUTTON_CAPS
   2.280 -	{
   2.281 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.282 +    public struct HIDP_BUTTON_CAPS
   2.283 +    {
   2.284  
   2.285 -		/// USAGE->USHORT->unsigned short
   2.286 -		public ushort UsagePage;
   2.287 +        /// USAGE->USHORT->unsigned short
   2.288 +        public ushort UsagePage;
   2.289  
   2.290 -		/// UCHAR->unsigned char
   2.291 -		public byte ReportID;
   2.292 +        /// UCHAR->unsigned char
   2.293 +        public byte ReportID;
   2.294  
   2.295 -		/// BOOLEAN->BYTE->unsigned char
   2.296 -		public byte IsAlias;
   2.297 +        /// BOOLEAN->BYTE->unsigned char
   2.298 +        public byte IsAlias;
   2.299  
   2.300 -		/// USHORT->unsigned short
   2.301 -		public ushort BitField;
   2.302 +        /// USHORT->unsigned short
   2.303 +        public ushort BitField;
   2.304  
   2.305 -		/// USHORT->unsigned short
   2.306 -		public ushort LinkCollection;
   2.307 +        /// USHORT->unsigned short
   2.308 +        public ushort LinkCollection;
   2.309  
   2.310 -		/// USAGE->USHORT->unsigned short
   2.311 -		public ushort LinkUsage;
   2.312 +        /// USAGE->USHORT->unsigned short
   2.313 +        public ushort LinkUsage;
   2.314  
   2.315 -		/// USAGE->USHORT->unsigned short
   2.316 -		public ushort LinkUsagePage;
   2.317 +        /// USAGE->USHORT->unsigned short
   2.318 +        public ushort LinkUsagePage;
   2.319  
   2.320 -		/// BOOLEAN->BYTE->unsigned char
   2.321 -		public byte IsRange;
   2.322 +        /// BOOLEAN->BYTE->unsigned char
   2.323 +        public byte IsRange;
   2.324  
   2.325 -		/// BOOLEAN->BYTE->unsigned char
   2.326 -		public byte IsStringRange;
   2.327 +        /// BOOLEAN->BYTE->unsigned char
   2.328 +        public byte IsStringRange;
   2.329  
   2.330 -		/// BOOLEAN->BYTE->unsigned char
   2.331 -		public byte IsDesignatorRange;
   2.332 +        /// BOOLEAN->BYTE->unsigned char
   2.333 +        public byte IsDesignatorRange;
   2.334  
   2.335 -		/// BOOLEAN->BYTE->unsigned char
   2.336 -		public byte IsAbsolute;
   2.337 +        /// BOOLEAN->BYTE->unsigned char
   2.338 +        public byte IsAbsolute;
   2.339  
   2.340 -		/// ULONG[10]
   2.341 -		[System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 10, ArraySubType = System.Runtime.InteropServices.UnmanagedType.U4)]
   2.342 -		public uint[] Reserved;
   2.343 +        /// ULONG[10]
   2.344 +        [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 10, ArraySubType = System.Runtime.InteropServices.UnmanagedType.U4)]
   2.345 +        public uint[] Reserved;
   2.346  
   2.347 -		/// TODO: get the proper field offset to make it nicer and get rid of union type
   2.348 -		public HIDP_BUTTON_CAPS_UNION Union;
   2.349 -	}
   2.350 +        /// TODO: get the proper field offset to make it nicer and get rid of union type
   2.351 +        public HIDP_BUTTON_CAPS_UNION Union;
   2.352 +    }
   2.353  
   2.354 -	/// <summary>
   2.355 -	/// Type created in place of an anonymous struct
   2.356 -	/// </summary>
   2.357 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.358 -	public struct HIDP_VALUE_CAPS_RANGE
   2.359 -	{
   2.360 +    /// <summary>
   2.361 +    /// Type created in place of an anonymous struct
   2.362 +    /// </summary>
   2.363 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.364 +    public struct HIDP_VALUE_CAPS_RANGE
   2.365 +    {
   2.366  
   2.367 -		/// USAGE->USHORT->unsigned short
   2.368 -		public ushort UsageMin;
   2.369 +        /// USAGE->USHORT->unsigned short
   2.370 +        public ushort UsageMin;
   2.371  
   2.372 -		/// USAGE->USHORT->unsigned short
   2.373 -		public ushort UsageMax;
   2.374 +        /// USAGE->USHORT->unsigned short
   2.375 +        public ushort UsageMax;
   2.376  
   2.377 -		/// USHORT->unsigned short
   2.378 -		public ushort StringMin;
   2.379 +        /// USHORT->unsigned short
   2.380 +        public ushort StringMin;
   2.381  
   2.382 -		/// USHORT->unsigned short
   2.383 -		public ushort StringMax;
   2.384 +        /// USHORT->unsigned short
   2.385 +        public ushort StringMax;
   2.386  
   2.387 -		/// USHORT->unsigned short
   2.388 -		public ushort DesignatorMin;
   2.389 +        /// USHORT->unsigned short
   2.390 +        public ushort DesignatorMin;
   2.391  
   2.392 -		/// USHORT->unsigned short
   2.393 -		public ushort DesignatorMax;
   2.394 +        /// USHORT->unsigned short
   2.395 +        public ushort DesignatorMax;
   2.396  
   2.397 -		/// USHORT->unsigned short
   2.398 -		public ushort DataIndexMin;
   2.399 +        /// USHORT->unsigned short
   2.400 +        public ushort DataIndexMin;
   2.401  
   2.402 -		/// USHORT->unsigned short
   2.403 -		public ushort DataIndexMax;
   2.404 -	}
   2.405 +        /// USHORT->unsigned short
   2.406 +        public ushort DataIndexMax;
   2.407 +    }
   2.408  
   2.409 -	/// <summary>
   2.410 -	/// Type created in place of an anonymous struct
   2.411 -	/// </summary>
   2.412 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.413 -	public struct HIDP_VALUE_CAPS_NOT_RANGE
   2.414 -	{
   2.415 +    /// <summary>
   2.416 +    /// Type created in place of an anonymous struct
   2.417 +    /// </summary>
   2.418 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.419 +    public struct HIDP_VALUE_CAPS_NOT_RANGE
   2.420 +    {
   2.421  
   2.422 -		/// USAGE->USHORT->unsigned short
   2.423 -		public ushort Usage;
   2.424 +        /// USAGE->USHORT->unsigned short
   2.425 +        public ushort Usage;
   2.426  
   2.427 -		/// USAGE->USHORT->unsigned short
   2.428 -		public ushort Reserved1;
   2.429 +        /// USAGE->USHORT->unsigned short
   2.430 +        public ushort Reserved1;
   2.431  
   2.432 -		/// USHORT->unsigned short
   2.433 -		public ushort StringIndex;
   2.434 +        /// USHORT->unsigned short
   2.435 +        public ushort StringIndex;
   2.436  
   2.437 -		/// USHORT->unsigned short
   2.438 -		public ushort Reserved2;
   2.439 +        /// USHORT->unsigned short
   2.440 +        public ushort Reserved2;
   2.441  
   2.442 -		/// USHORT->unsigned short
   2.443 -		public ushort DesignatorIndex;
   2.444 +        /// USHORT->unsigned short
   2.445 +        public ushort DesignatorIndex;
   2.446  
   2.447 -		/// USHORT->unsigned short
   2.448 -		public ushort Reserved3;
   2.449 +        /// USHORT->unsigned short
   2.450 +        public ushort Reserved3;
   2.451  
   2.452 -		/// USHORT->unsigned short
   2.453 -		public ushort DataIndex;
   2.454 +        /// USHORT->unsigned short
   2.455 +        public ushort DataIndex;
   2.456  
   2.457 -		/// USHORT->unsigned short
   2.458 -		public ushort Reserved4;
   2.459 -	}
   2.460 +        /// USHORT->unsigned short
   2.461 +        public ushort Reserved4;
   2.462 +    }
   2.463  
   2.464 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
   2.465 -	public struct HIDP_VALUE_CAPS_UNION
   2.466 -	{
   2.467 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Explicit)]
   2.468 +    public struct HIDP_VALUE_CAPS_UNION
   2.469 +    {
   2.470  
   2.471 -		/// 
   2.472 -		[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.473 -		public HIDP_VALUE_CAPS_RANGE Range;
   2.474 +        /// 
   2.475 +        [System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.476 +        public HIDP_VALUE_CAPS_RANGE Range;
   2.477  
   2.478 -		/// 
   2.479 -		[System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.480 -		public HIDP_VALUE_CAPS_NOT_RANGE NotRange;
   2.481 -	}
   2.482 +        /// 
   2.483 +        [System.Runtime.InteropServices.FieldOffsetAttribute(0)]
   2.484 +        public HIDP_VALUE_CAPS_NOT_RANGE NotRange;
   2.485 +    }
   2.486  
   2.487 -	[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.488 -	public struct HIDP_VALUE_CAPS
   2.489 -	{
   2.490 +    [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
   2.491 +    public struct HIDP_VALUE_CAPS
   2.492 +    {
   2.493  
   2.494 -		/// USAGE->USHORT->unsigned short
   2.495 -		public ushort UsagePage;
   2.496 +        /// USAGE->USHORT->unsigned short
   2.497 +        public ushort UsagePage;
   2.498  
   2.499 -		/// UCHAR->unsigned char
   2.500 -		public byte ReportID;
   2.501 +        /// UCHAR->unsigned char
   2.502 +        public byte ReportID;
   2.503  
   2.504 -		/// BOOLEAN->BYTE->unsigned char
   2.505 -		public byte IsAlias;
   2.506 +        /// BOOLEAN->BYTE->unsigned char
   2.507 +        public byte IsAlias;
   2.508  
   2.509 -		/// USHORT->unsigned short
   2.510 -		public ushort BitField;
   2.511 +        /// USHORT->unsigned short
   2.512 +        public ushort BitField;
   2.513  
   2.514 -		/// USHORT->unsigned short
   2.515 -		public ushort LinkCollection;
   2.516 +        /// USHORT->unsigned short
   2.517 +        public ushort LinkCollection;
   2.518  
   2.519 -		/// USAGE->USHORT->unsigned short
   2.520 -		public ushort LinkUsage;
   2.521 +        /// USAGE->USHORT->unsigned short
   2.522 +        public ushort LinkUsage;
   2.523  
   2.524 -		/// USAGE->USHORT->unsigned short
   2.525 -		public ushort LinkUsagePage;
   2.526 +        /// USAGE->USHORT->unsigned short
   2.527 +        public ushort LinkUsagePage;
   2.528  
   2.529 -		/// BOOLEAN->BYTE->unsigned char
   2.530 -		public byte IsRange;
   2.531 +        /// BOOLEAN->BYTE->unsigned char
   2.532 +        public byte IsRange;
   2.533  
   2.534 -		/// BOOLEAN->BYTE->unsigned char
   2.535 -		public byte IsStringRange;
   2.536 +        /// BOOLEAN->BYTE->unsigned char
   2.537 +        public byte IsStringRange;
   2.538  
   2.539 -		/// BOOLEAN->BYTE->unsigned char
   2.540 -		public byte IsDesignatorRange;
   2.541 +        /// BOOLEAN->BYTE->unsigned char
   2.542 +        public byte IsDesignatorRange;
   2.543  
   2.544 -		/// BOOLEAN->BYTE->unsigned char
   2.545 -		public byte IsAbsolute;
   2.546 +        /// BOOLEAN->BYTE->unsigned char
   2.547 +        public byte IsAbsolute;
   2.548  
   2.549 -		/// BOOLEAN->BYTE->unsigned char
   2.550 -		public byte HasNull;
   2.551 +        /// BOOLEAN->BYTE->unsigned char
   2.552 +        public byte HasNull;
   2.553  
   2.554 -		/// UCHAR->unsigned char
   2.555 -		public byte Reserved;
   2.556 +        /// UCHAR->unsigned char
   2.557 +        public byte Reserved;
   2.558  
   2.559 -		/// USHORT->unsigned short
   2.560 -		public ushort BitSize;
   2.561 +        /// USHORT->unsigned short
   2.562 +        public ushort BitSize;
   2.563  
   2.564 -		/// USHORT->unsigned short
   2.565 -		public ushort ReportCount;
   2.566 +        /// USHORT->unsigned short
   2.567 +        public ushort ReportCount;
   2.568  
   2.569 -		/// USHORT[5]
   2.570 -		[System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 5, ArraySubType = System.Runtime.InteropServices.UnmanagedType.U2)]
   2.571 -		public ushort[] Reserved2;
   2.572 +        /// USHORT[5]
   2.573 +        [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst = 5, ArraySubType = System.Runtime.InteropServices.UnmanagedType.U2)]
   2.574 +        public ushort[] Reserved2;
   2.575  
   2.576 -		/// ULONG->unsigned int
   2.577 -		public uint UnitsExp;
   2.578 +        /// ULONG->unsigned int
   2.579 +        public uint UnitsExp;
   2.580  
   2.581 -		/// ULONG->unsigned int
   2.582 -		public uint Units;
   2.583 +        /// ULONG->unsigned int
   2.584 +        public uint Units;
   2.585  
   2.586 -		/// LONG->int
   2.587 -		public int LogicalMin;
   2.588 +        /// LONG->int
   2.589 +        public int LogicalMin;
   2.590  
   2.591 -		/// LONG->int
   2.592 -		public int LogicalMax;
   2.593 +        /// LONG->int
   2.594 +        public int LogicalMax;
   2.595  
   2.596 -		/// LONG->int
   2.597 -		public int PhysicalMin;
   2.598 +        /// LONG->int
   2.599 +        public int PhysicalMin;
   2.600  
   2.601 -		/// LONG->int
   2.602 -		public int PhysicalMax;
   2.603 +        /// LONG->int
   2.604 +        public int PhysicalMax;
   2.605  
   2.606 -		/// 
   2.607 -		public HIDP_VALUE_CAPS_UNION Union;
   2.608 -	}
   2.609 +        /// 
   2.610 +        public HIDP_VALUE_CAPS_UNION Union;
   2.611 +    }
   2.612 +}
   2.613  
   2.614 -}
   2.615 \ No newline at end of file
   2.616 +