MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetDeviceIcon

Method GetDeviceIcon

WinSysCore/DeviceManager.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87HICON 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
94std::wstring WinSys::DeviceManager::GetDeviceRegistryPropertyString(const DeviceInfo& di, DeviceRegistryPropertyType type) {
95 std::wstring result;

Callers 1

RefreshMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected