Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

HidD_GetAttributes (hid)
 
.
Summary
The routine returns the attributes of a specified top-level collection.

C# Signature:

[DllImport("hid.dll", SetLastError=true)]
static extern Boolean HidD_GetAttributes(SafeFileHandle HidDeviceObject, ref HIDD_ATTRIBUTES Attributes );

VB Signature:

Declare Function HidD_GetAttributes Lib "hid.dll" (HidDeviceObject As SafeFileHandle, out Attributes As HIDD_ATTRIBUTES) As Boolean

User-Defined Types:

HIDD_ATTRIBUTES Structure in C#:

[ StructLayout( LayoutKind.Sequential ) ]

public struct HIDD_ATTRIBUTES

{

    public Int32 Size;
    public Int16 VendorID;
    public Int16 ProductID;
    public Int16 VersionNumber;

}

HIDD_ATTRIBUTES Structure in VB:

Pubic Type HIDD_ATTRIBUTES

    Size As Int32
    VendorID As Int16
    ProductID As Int16
    VersionNumber As Int16

End Type

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!

Documentation

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).

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions