| 85 | } |
| 86 | |
| 87 | HICON WinSys::DeviceManager::GetDeviceIcon(const DeviceInfo& di, bool big) const { |
| 88 | HICON hIcon = nullptr; |
| 89 | auto size = big ? 32 : 16; |
| 90 | ::SetupDiLoadDeviceIcon(_hInfoSet.get(), (PSP_DEVINFO_DATA)&di.Data, size, size, 0, &hIcon); |
| 91 | return hIcon; |
| 92 | } |
| 93 | |
| 94 | std::wstring WinSys::DeviceManager::GetDeviceRegistryPropertyString(const DeviceInfo& di, DeviceRegistryPropertyType type) { |
| 95 | std::wstring result; |