Run WH_KEYBOARD_LL and WH_MOUSE_LL hooks in the context of the thread