Microsoft KB Archive/186943

= DOC: SetWindowsHookEx Fails with Error 1429 ERROR_GLOBAL_ONLY_H =

ID: Q186943

The information in this article applies to:

  Microsoft Win32 Software Development Kit (SDK) on the following platform: - Microsoft Windows NT 4.0 

SUMMARY
When you use SetWindowsHookEx on Windows NT with the flags WH_KEYBOARD_LL or WH_MOUSE_LL as a thread-specific hook, it fails with error 1429 ERROR_GLOBAL_ONLY_HOOK.

MORE INFORMATION
WH_KEYBOARD_LL and WH_MOUSE_LL are system-only hooks. An error in the Win32 SDK Documentation states that they are both system-wide and thread-specific hooks.