Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than hid, prefix the name with the module name and a period.
[ StructLayout( LayoutKind.Sequential ) ]
public struct HIDD_ATTRIBUTES
{
public Int32 Size;
public Int16 VendorID;
public Int16 ProductID
public Int16 VersionNumber;
}
HIDD_ATTRIBUTES Structure in VB:
<StructLayout(LayoutKind.Sequential)> _
Public Structure HIDD_ATTRIBUTES
Public Size As Int32
Public VendorID As Int16
Public ProductID As Int16
Public VersionNumber As Int16
End Structure
Parameters
HidDeviceObject [in]
Specifies an open handle to a top-level collection.
Attributes [out]
Pointer to a caller-allocated HIDD_ATTRIBUTES structure that returns the attributes of the collection specified by DeviceObject.
Return Value
GetAttributes returns TRUE if succeeds; otherwise, it returns FALSE.
Alternative Managed API:
Do you know one? Please contribute it!
Notes:
For C# - Must put "using Microsoft.Win32.SafeHandles;"
For VB - Must put "Imports Microsoft.Win32.SafeHandles"
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).