Skip to content

Common Controls Hook v1.0.2#4470

Merged
m417z merged 1 commit into
mainfrom
common-controls-hook-1.0.2
Jun 17, 2026
Merged

Common Controls Hook v1.0.2#4470
m417z merged 1 commit into
mainfrom
common-controls-hook-1.0.2

Conversation

@m417z

@m417z m417z commented Jun 17, 2026

Copy link
Copy Markdown
Member
  • Common Controls v6 activation is now skipped if already activated, improving stability.

* Common Controls v6 activation is now skipped if already activated, improving stability.

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

This PR updates the Common Controls Hook Windhawk mod to avoid activating its own Common Controls v6 activation context when v6 is already active in the current thread, aiming to reduce activation stack churn and improve stability.

Changes:

  • Added logic to detect the currently active Common Controls “versioned” window class redirection (via activation context lookup).
  • Cached the mod’s v6 “versioned” class name and used it to skip redundant ActivateActCtx calls.
  • Bumped mod version to 1.0.2.

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

Comment on lines +74 to +82
const auto* redirect =
static_cast<const wndclass_redirect_data*>(data.lpData);
if (redirect->name_offset >= data.ulLength) {
return std::wstring();
}

const auto* name = reinterpret_cast<const WCHAR*>(
static_cast<const BYTE*>(data.lpData) + redirect->name_offset);
return std::wstring(name);
Comment on lines +161 to +164
if (!v6Name.empty() && ambient == v6Name) {
DeactivateActCtx(0, cookie);
return;
}
@m417z m417z merged commit 63664ba into main Jun 17, 2026
5 checks passed
@m417z m417z deleted the common-controls-hook-1.0.2 branch June 17, 2026 18:35
@mohsinhasanpc

Copy link
Copy Markdown

Hello? Can you view my PR on taskbar guide?
I've updated the liquid glass theme & I'm the new author now
Took permission from previous author

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.

3 participants