ERROR_GLOBAL_ONLY_HOOK - 1429 (0x595)

This hook procedure can only be set globally.

Updated: Feb 21, 2026

Technical Meaning

The ERROR_GLOBAL_ONLY_HOOK error code indicates that a hook procedure has been attempted to be set in a manner other than globally. Hook procedures, such as those used for keyboard or mouse input, must be configured at the global level and cannot be localized to individual processes.

Error Details

This specific error is returned when an application attempts to install a hook procedure that requires global settings but does so in a context where only local or per-process hooks are allowed. This can occur during the initialization of certain system components or when attempting to modify system-wide behavior through non-global mechanisms.

Usage Context

Hook procedures, particularly those related to input events like keyboard and mouse actions, operate at the global level. They must be set up in a way that affects all processes running on the system. Attempting to install such hooks locally will result in this error being returned.

Developer Interpretation

Developers should ensure that when setting up hook procedures for global input events, they do so through appropriate APIs and mechanisms designed for global configuration. Misuse of these APIs can lead to application crashes or unexpected behavior due to the incorrect setup of system-wide hooks.

Related Errors

  • ERROR_HOOK_NOT_INSTALLED (1280): Indicates that a hook procedure was not installed successfully, possibly due to insufficient privileges or other issues.
  • ERROR_INVALID_PARAMETER (1402): Occurs when an invalid parameter is passed to the API function, which might include incorrect settings for global hooks.

FAQ

Q: What does ERROR_GLOBAL_ONLY_HOOK mean?

A: It means that a hook procedure was attempted to be set in a non-global context, requiring it to be configured at the system-wide level instead.

Q: How can I resolve this error?

A: Ensure that you are using the appropriate API functions for setting up global hooks and not attempting to configure them locally or per-process.

Summary

The ERROR_GLOBAL_ONLY_HOOK error code is a specific indication that a hook procedure was incorrectly configured in a non-global context. Developers should ensure they use the correct APIs for setting up system-wide hooks to avoid this error.