MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / RemoveHandler

Method RemoveHandler

IntelPresentMon/Core/source/win/EventHookManager.cpp:48–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void EventHookManager::RemoveHandler(HWINEVENTHOOK hHook)
49 {
50 if (auto i = handlerMap.find(hHook); i != handlerMap.end())
51 {
52 if (UnhookWinEvent(i->first))
53 {
54 handlerMap.erase(i);
55 return;
56 }
57 }
58 pmlog_warn("Failure unhooking windows event listener");
59 }
60
61 EventHookManager::~EventHookManager()
62 {

Callers 1

~TokenMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected