MCPcopy Create free account
hub / github.com/Atarity/Lightpack / installHook

Method installHook

Software/hooks/proxyfuncvftable.cpp:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20bool ProxyFuncVFTable::installHook() {
21 return (m_isInited) && WriteToProtectedMem(m_pTarget, &m_pSubstFunc, NULL, sizeof(m_pSubstFunc));
22}
23
24bool ProxyFuncVFTable::removeHook() {
25 return (m_isInited) && WriteToProtectedMem(m_pTarget, &m_pOriginalFunc, NULL, sizeof(m_pOriginalFunc));

Callers

nothing calls this directly

Calls 1

WriteToProtectedMemFunction · 0.85

Tested by

no test coverage detected