Closed Tunghohin closed 1 month ago
C++/WinRT v2.0.220110.5
auto devices = DeviceInformation::FindAllAsync( DeviceClass::VideoCapture ).get(); for (auto&& dev : devices) { fmt::println(stderr, L"{}", dev.Properties() .TryLookup(L"System.Devices.DeviceInstanceId") .try_as<winrt::hstring>() .value_or(L"None") .c_str()); } fmt::println(stderr, "{}", devices.Size());
output:
auto devices = DeviceInformation::FindAllAsync( UsbDevice::GetDeviceSelector(0x0603, 0x8612) ).get(); for (auto&& dev : devices) { fmt::println(stderr, L"{}", dev.Properties() .TryLookup(L"System.Devices.DeviceInstanceId") .try_as<winrt::hstring>() .value_or(L"None") .c_str()); } fmt::println(stderr, "{}", devices.Size());
gets a empty collection
No response
This would be a Windows bug, not a cppwinrt one. Windows bugs generally go in https://github.com/microsoft/WindowsAppSDK or the Feedback Hub.
Version
C++/WinRT v2.0.220110.5
Summary
output:
gets a empty collection
Reproducible example
No response
Expected behavior
No response
Actual behavior
No response
Additional comments
No response