background preloader

Hook

Facebook Twitter

SetWindowsHook Keyboard App Container Store nvda. Hooks Overview. A hook is a mechanism by which an application can intercept events, such as messages, mouse actions, and keystrokes. A function that intercepts a particular type of event is known as a hook procedure . A hook procedure can act on each event it receives, and then modify or discard the event. The following some example uses for hooks: Monitor messages for debugging purposes Provide support for recording and playback of macros Provide support for a help key (F1) Simulate mouse and keyboard input Implement a computer-based training (CBT) application Note Hooks tend to slow down the system because they increase the amount of processing the system must perform for each message. You should install a hook only when necessary, and remove it as soon as possible. This section discusses the following: Hook Chains The system supports many different types of hooks; each type provides access to a different aspect of its message-handling mechanism.

Hook Procedures Hook Types For information, see WinEvents . Hooks. Www.exploit-db.com/wp-content/themes/exploit/docs/17802.pdf. Mad* Help... The package "madCodeHook" offers everything you need to hook code (mostly APIs). Usually such hooks show effect only in the current process. But madCodeHook also can inject a specified DLL into any desired 32bit or 64bit process or even "system wide" (that is into all currently running and into all in the future created processes).

So by putting your hooking stuff into a little DLL and injecting it "system wide", you can realize effective and easy to use system wide API hooking. Of course everything works just as fine under all all Microsoft OSs from Windows 95 and NT4 up to the latest 32bit and 64bit OSs . Besides, madCodeHook also offers IPC (inter process communication) functionality and lots of other tool functions . A full list of what is contained in madCodeHook can be found in the madCodeHook Reference .

Experienced madCodeHook 2.x users, who have just upgraded to madCodeHook 3.0, might want to read the v3.0 information first, including the linked pages.