[DllImport("hid.dll", SetLastError=true)]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct HIDP_CAPS {
[MarshalAs(UnmanagedType.U2)]
UInt16 Usage;
[MarshalAs(UnmanagedType.U2)]
UInt16 UsagePage;
[MarshalAs(UnmanagedType.U2)]
UInt16 InputReportByteLength;
[MarshalAs(UnmanagedType.U2)]
UInt16 OutputReportByteLength;
[MarshalAs(UnmanagedType.U2)]
UInt16 FeatureReportByteLength;
[MarshalAs(UnmanagedType.LPArray, SizeConst=17)]
UInt16[] Reserved;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberLinkCollectionNodes;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberInputButtonCaps;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberInputValueCaps;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberInputDataIndices;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberOutputButtonCaps;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberOutputValueCaps;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberOutputDataIndices;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberFeatureButtonCaps;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberFeatureValueCaps;
[MarshalAs(UnmanagedType.U2)]
UInt16 NumberFeatureDataIndices;
} ;
Declare Function HIDP_CAPS Lib "hid.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
HIDP_CAPS structure
Members
Usage
Specifies a top-level collection's usage ID.
Specifies the top-level collection's usage page.
Specifies the maximum size, in bytes, of all the input reports (including the report ID, if report IDs are used, which is prepended to the report data).
Specifies the maximum size, in bytes, of all the output reports (including the report ID, if report IDs are used, which is prepended to the report data).
Specifies the maximum length, in bytes, of all the feature reports (including the report ID, if report IDs are used, which is prepended to the report data).
Reserved
Reserved for internal system use.
Specifies the number of HIDP_LINK_COLLECTION_NODE structures that are returned for this top-level collection by HidP_GetLinkCollectionNodes.
Specifies the number of input HIDP_BUTTON_CAPS structures that HidP_GetButtonCaps returns.
Specifies the number of input HIDP_VALUE_CAPS structures that HidP_GetValueCaps returns.
Specifies the number of data indices assigned to buttons and values in all input reports.
Specifies the number of output HIDP_BUTTON_CAPS structures that HidP_GetButtonCaps returns.
Specifies the number of output HIDP_VALUE_CAPS structures that HidP_GetValueCaps returns.
Specifies the number of data indices assigned to buttons and values in all output reports.
Specifies the total number of feature HIDP_BUTTONS_CAPS structures that HidP_GetButtonCaps returns.
Specifies the total number of feature HIDP_VALUE_CAPS structures that HidP_GetValueCaps returns.
Specifies the number of data indices assigned to buttons and values in all feature reports.
Remarks
Callers of the HIDClass support routines use the information provided in this structure when a called routine requires, as input, the size of a report type, the number of link collection nodes, the number of control capabilities, or the number of data indices.
Please add some!
Please add some!