HidLibrary.NativeMethods.SetupDiGetDeviceRegistryProperty C# (CSharp) Метод

SetupDiGetDeviceRegistryProperty() приватный Метод

private SetupDiGetDeviceRegistryProperty ( IntPtr deviceInfoSet, SP_DEVINFO_DATA &deviceInfoData, int propertyVal, int &propertyRegDataType, byte propertyBuffer, int propertyBufferSize, int &requiredSize ) : bool
deviceInfoSet System.IntPtr
deviceInfoData SP_DEVINFO_DATA
propertyVal int
propertyRegDataType int
propertyBuffer byte
propertyBufferSize int
requiredSize int
Результат bool
        public static extern bool SetupDiGetDeviceRegistryProperty(IntPtr deviceInfoSet, ref SP_DEVINFO_DATA deviceInfoData, int propertyVal, ref int propertyRegDataType, byte[] propertyBuffer, int propertyBufferSize, ref int requiredSize);

Usage Example

Пример #1
0
        private static string GetDeviceDescription(IntPtr deviceInfoSet, ref NativeMethods.SP_DEVINFO_DATA devinfoData)
        {
            byte[] array               = new byte[1024];
            int    requiredSize        = 0;
            int    propertyRegDataType = 0;

            NativeMethods.SetupDiGetDeviceRegistryProperty(deviceInfoSet, ref devinfoData, 0, ref propertyRegDataType, array, array.Length, ref requiredSize);
            return(array.ToUTF8String());
        }
All Usage Examples Of HidLibrary.NativeMethods::SetupDiGetDeviceRegistryProperty