| 797 | } |
| 798 | |
| 799 | std::wstring TaskbarAttributeWorker::DumpWindow(Window window) |
| 800 | { |
| 801 | if (window) |
| 802 | { |
| 803 | std::wstring title, className, fileName; |
| 804 | if (auto titleOpt = window.title()) |
| 805 | { |
| 806 | title = std::move(*titleOpt); |
| 807 | if (auto classNameOpt = window.classname()) |
| 808 | { |
| 809 | className = std::move(*classNameOpt); |
| 810 | if (const auto fileOpt = window.file()) |
| 811 | { |
| 812 | fileName = fileOpt->filename().native(); |
| 813 | } |
| 814 | } |
| 815 | } |
| 816 | |
| 817 | return std::format(L"{} [{}] [{}] [{}]", static_cast<void *>(window.handle()), title, className, fileName); |
| 818 | } |
| 819 | else |
| 820 | { |
| 821 | return L"0x0"; |
| 822 | } |
| 823 | } |
| 824 | |
| 825 | void TaskbarAttributeWorker::CreateAppVisibility() |
| 826 | { |