HidLibrary.NativeMethods.HidD_GetAttributes C# (CSharp) 메소드

HidD_GetAttributes() 개인적인 메소드

private HidD_GetAttributes ( IntPtr hidDeviceObject, HIDD_ATTRIBUTES &attributes ) : bool
hidDeviceObject System.IntPtr
attributes HIDD_ATTRIBUTES
리턴 bool
        internal static extern bool HidD_GetAttributes(IntPtr hidDeviceObject, ref HIDD_ATTRIBUTES attributes);

Usage Example

예제 #1
0
        private static HidDeviceAttributes GetDeviceAttributes(IntPtr hidHandle)
        {
            var deviceAttributes = default(NativeMethods.HIDD_ATTRIBUTES);

            deviceAttributes.Size = Marshal.SizeOf(deviceAttributes);
            NativeMethods.HidD_GetAttributes(hidHandle, ref deviceAttributes);
            return(new HidDeviceAttributes(deviceAttributes));
        }