Desktop Functions: Smart Device Functions:
|
HidD_GetAttributes (hid)
C# Signature:
[DllImport("hid.dll", SetLastError=true)] 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; } HIDD_ATTRIBUTES Structure in VB:Pubic Type HIDD_ATTRIBUTES
Size As Int32 End Type ParametersHidDeviceObject [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 HidDeviceObject. Return ValueHidD_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...
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). |
|