Hooking Windows APIs with Python
Windows API Hooking
The Hook
API hooking refers to techniques for changing or extending the behavior of an OS or app by intercepting API function calls, messages, or events passed between software components. The code that performs the interception is called a hook. In Windows this can be done by injecting DLLs, injecting code, and using the Win32 Debug API toolset.