| 7 | #endif |
| 8 | |
| 9 | ITaskbarList3* Taskbar::getPtr() |
| 10 | { |
| 11 | #ifdef FastCopy_UseWinRT |
| 12 | static winrt::com_ptr<ITaskbarList3> instance = [] |
| 13 | { |
| 14 | winrt::com_ptr<ITaskbarList3> ptr; |
| 15 | CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_ALL, __uuidof(ITaskbarList3), ptr.put_void()); |
| 16 | return ptr; |
| 17 | }(); |
| 18 | return instance.get(); |
| 19 | #endif |
| 20 | } |
| 21 | |
| 22 | void Taskbar::SetProgressState(HWND hwnd, ProgressState state) |
| 23 | { |