Difference between revisions of "SourceHook"

From AlliedModders Wiki
Jump to: navigation, search
m
 
m
Line 1: Line 1:
 +
[[Category:SourceMM]]
 
SourceHook is a versatile library for hooking virtual functions. SourceHook was designed for declaring single hooks against a given virtual function and a specific <tt><i>this</i></tt> pointer.
 
SourceHook is a versatile library for hooking virtual functions. SourceHook was designed for declaring single hooks against a given virtual function and a specific <tt><i>this</i></tt> pointer.
  

Revision as of 23:01, 19 January 2006

SourceHook is a versatile library for hooking virtual functions. SourceHook was designed for declaring single hooks against a given virtual function and a specific this pointer.

Features:

  • You can change parent parameters during a hooked call
  • You can hook member functions, both by a pre-existing declaration or given vtable offset
  • You can call the original function and still fire its associated hooks, or you can call it without firing hooks in order to prevent infinite recursion via a CallClass

This article is a stub. Help by expanding it