DS4Windows.HidDevice.GetDeviceAttributes C# (CSharp) Method

GetDeviceAttributes() private static method

private static GetDeviceAttributes ( SafeFileHandle hidHandle ) : HidDeviceAttributes
hidHandle SafeFileHandle
return HidDeviceAttributes
        private static HidDeviceAttributes GetDeviceAttributes(SafeFileHandle hidHandle)
        {
            var deviceAttributes = default(NativeMethods.HIDD_ATTRIBUTES);
            deviceAttributes.Size = Marshal.SizeOf(deviceAttributes);
            NativeMethods.HidD_GetAttributes(hidHandle.DangerousGetHandle(), ref deviceAttributes);
            return new HidDeviceAttributes(deviceAttributes);
        }