| 76 | } |
| 77 | |
| 78 | winrt::Windows::Foundation::Collections::IVector<winrt::Windows::Foundation::IInspectable> FileInfoViewModel::tooltipInfo() |
| 79 | { |
| 80 | for (auto&& [name, key] : |
| 81 | { |
| 82 | std::pair{L"FileDescription", PKEY_FileDescription}, |
| 83 | std::pair{L"ProductName", PKEY_Software_ProductName}, |
| 84 | std::pair{L"FileVersion", PKEY_FileVersion}, |
| 85 | std::pair{L"Copyright", PKEY_Copyright } |
| 86 | }) |
| 87 | { |
| 88 | auto value = GetShellPropStringFromPath(m_path.data(), key); |
| 89 | if (value.empty()) |
| 90 | continue; |
| 91 | m_tooltipInfo.push_back(winrt::box_value(winrt::FastCopy::ExtendedFileInfo{.name = name, .value = value.data()})); |
| 92 | } |
| 93 | return winrt::single_threaded_vector(std::move(m_tooltipInfo)); |
| 94 | } |
| 95 | } |
nothing calls this directly
no test coverage detected