WH_KEYBOARD

c++ / delphi package - dll injection and api hooking
Post Reply
wrastus
Posts: 1
Joined: Tue Jun 08, 2004 12:29 am

WH_KEYBOARD

Post by wrastus »

What API can I hook using madCodeHook in order to to get the same result as using setwindowshookex(wh_keyboard). Me, delphi, and hooks do not appear to get along well. Any help would be greatly appreciated.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Well, keyboard input goes through the normal message APIs like GetMessage and PeekMessage. However, I really do recommend using SetWindowsHookEx for hooking these things. It's always recommended to use the official API - if there is one.
Post Reply