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.
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.