MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / CreateHook

Method CreateHook

TranslucentTB/taskbar/taskbarattributeworker.cpp:949–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949wil::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
961void TaskbarAttributeWorker::ReturnToStock()
962{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected