Skip to content

Common Controls Hook v1.0.1#4439

Merged
m417z merged 1 commit into
mainfrom
common-controls-hook-1.0.1
Jun 15, 2026
Merged

Common Controls Hook v1.0.1#4439
m417z merged 1 commit into
mainfrom
common-controls-hook-1.0.1

Conversation

@m417z

@m417z m417z commented Jun 15, 2026

Copy link
Copy Markdown
Member
  • Only apply the common controls to windows, not to controls such as buttons. Improves stability, and fixes a crash in Device Manager.

* Only apply the common controls to windows, not to controls such as buttons. Improves stability, and fixes a crash in Device Manager.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Common Controls Hook Windhawk mod to improve stability by reducing activation context churn and avoiding applying the Common Controls v6 activation context to child controls (e.g., buttons), addressing crashes such as in Device Manager.

Changes:

  • Bumped mod version to 1.0.1 and made ActCtxGuard non-copyable/non-movable with explicit member initialization.
  • Reworked CreateWindowExW/A hooking to apply the activation context only for non-WS_CHILD (top-level) windows.
  • Added error logging when a function hook fails to install and cleaned up the hook-install macro with #undef.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m417z m417z merged commit a58065f into main Jun 15, 2026
5 checks passed
@m417z m417z deleted the common-controls-hook-1.0.1 branch June 15, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants