Skip to content

Add hide-rdp-connection-bar mod - #1

Open
StarlightDaemon wants to merge 1 commit into
mainfrom
add-hide-rdp-connection-bar
Open

Add hide-rdp-connection-bar mod#1
StarlightDaemon wants to merge 1 commit into
mainfrom
add-hide-rdp-connection-bar

Conversation

@StarlightDaemon

Copy link
Copy Markdown
Owner

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:0 in the .rdp file) don't persist reliably.

Hooks four Win32 APIs inside mstsc.exe — CreateWindowExW, ShowWindow, SetWindowPos, and SetWindowTextW — 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

  • Bar is hidden immediately on session start in fullscreen mstsc.exe
  • Bar stays hidden after Ctrl+Alt+Home and any subsequent mstsc show attempts
  • Disconnect button appears in the correct corner with correct DPI scaling
  • Button repositions correctly when the RDP window moves to a different monitor
  • Hostname updates live as mstsc resolves the remote host
  • Hotkey registers and disconnects correctly; conflict state displays on button when registration fails
  • Settings changes apply correctly via Wh_ModSettingsChanged
  • Mod unloads cleanly — original wndproc restored, no mstsc crash

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:

    • The submitter, without AI assistance
    • The submitter, with AI assistance
    • Claude
    • ChatGPT
    • Gemini
    • Another AI (please specify):
    • Other (please specify):

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.

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.

1 participant