Add hide-rdp-connection-bar mod#4073
Open
StarlightDaemon wants to merge 1 commit into
Open
Conversation
m417z
reviewed
May 16, 2026
|
|
||
| g_origBBarWndProc = reinterpret_cast<WNDPROC>( | ||
| SetWindowLongPtrW(hwnd, GWLP_WNDPROC, | ||
| reinterpret_cast<LONG_PTR>(BBarSubclassProc))); |
Member
There was a problem hiding this comment.
Changing GWLP_WNDPROC directly might conflict with other mods. Prefer using WindhawkUtils::SetWindowSubclassFromAnyThread. Look at existing mods for reference.
Member
|
There's a feature request to be able to resize the bar: #2116 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New mod: permanently hides the floating RDP connection bar (BBarWindowClass) in fullscreen mstsc.exe sessions on Windows 11, where the native hide options (the pin button, the client toggle, and
displayconnectionbar:i:0in the .rdp file) don't persist reliably.Hooks four Win32 APIs inside mstsc.exe —
CreateWindowExW,ShowWindow,SetWindowPos, andSetWindowTextW— to detect and suppress the bar at the process level. All original calls complete normally.Optionally shows a clean disconnect button pinned to any corner of the screen with live hostname display, idle fade, configurable hotkey with conflict detection, multi-monitor awareness, and full DPI scaling.
Test plan
Changelog
If this pull request updates an existing mod, describe the changes below:
N/A — new mod.
Mod authorship
If this pull request introduces a new mod, please complete the section below.
This mod was created by:
Please select the options that best apply. Your selection does not affect the acceptance criteria, but it helps reviewers understand the context of the code and provide relevant feedback.