Page 1 of 1

WH_KEYBOARD

Posted: Tue Jun 08, 2004 12:32 am
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.

Posted: Tue Jun 08, 2004 8:38 am
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.