internal DeviceRegistryPropertyKey(DeviceRegistryPropertyCode propertyCode, string name, params DeviceRegistryPropertyType[] expectedTypes) { PropertyCode = propertyCode; Name = name; _expectedTypes = new List <DeviceRegistryPropertyType>(expectedTypes ?? new DeviceRegistryPropertyType[0]); }
internal static extern bool GetDeviceRegistryProperty( IntPtr hInfoList, ref SP_DEVINFO_DATA deviceInfoData, [MarshalAs(UnmanagedType.U4)] DeviceRegistryPropertyCode propertyKey, [MarshalAs(UnmanagedType.U4)] out DeviceRegistryPropertyType propertyType, IntPtr propertyBuffer, int propertyBufferSize, out int requiredBufferSize);