| 947 | } |
| 948 | |
| 949 | wil::unique_hwineventhook TaskbarAttributeWorker::CreateHook(DWORD eventMin, DWORD eventMax, WINEVENTPROC proc) |
| 950 | { |
| 951 | if (wil::unique_hwineventhook hook { SetWinEventHook(eventMin, eventMax, nullptr, proc, 0, 0, WINEVENT_OUTOFCONTEXT) }) |
| 952 | { |
| 953 | return hook; |
| 954 | } |
| 955 | else |
| 956 | { |
| 957 | MessagePrint(spdlog::level::critical, L"Failed to create a Windows event hook."); |
| 958 | } |
| 959 | } |
| 960 | |
| 961 | void TaskbarAttributeWorker::ReturnToStock() |
| 962 | { |
nothing calls this directly
no outgoing calls
no test coverage detected