Skip to content

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 14:44
· 11 commits to main since this release

[1.0.0] - 2026-11-29

First public release. Apache 2.0.

Blackout

  • Overlay-based local blackout: fullscreen top-most window with WDA_EXCLUDEFROMCAPTURE, WS_EX_TRANSPARENT click-through, WS_EX_TOOLWINDOW, spanning the virtual screen. Locally black; remote capture sees the real desktop.
  • Optional WMI brightness dimming on laptops with a Windows-controlled integrated panel.
  • UIAccess bootstrap via a Winlogon token borrow so the overlay covers Alt+Tab, Win+Tab and the Start Menu.
  • DWM-restart handling: the overlay re-arms WDA_EXCLUDEFROMCAPTURE on the next tick after a dwm.exe restart.

Detection

  • Dedicated detectors for the three tools whose always-on helper process would otherwise false-positive:
    • AnyDesk - matches the ad_watermark#NN window class, which appears only after Accept.
    • RustDesk - counts rustdesk.exe processes in the caller's Windows session; the active-session threshold (3) separates the live session from the Accept prompt (2) and idle (1).
    • TeamViewer - matches the TV_ControlWin floating session panel.
  • Generic process watchlist covering Chrome Remote Desktop (remoting_desktop.exe), Parsec (parsecd.exe), MeshCentral (MeshAgent.exe) and VNC (winvnc.exe).
  • All four detectors filter by Windows session via ProcessIdToSessionId, so another logged-in user's remote tool cannot trigger the overlay on fast-user-switching or RDP hosts.
  • Transient CreateToolhelp32Snapshot / EnumWindows failures return state::unknown rather than state::no_remote, so a one-tick OS hiccup does not tear down an active overlay.
  • Composite detector short-circuits on the first remote_active and carries its evidence to the tray tooltip.

Policy and state

  • blackout_policy with three modes: Manual, Auto-detect remote sessions (default), Always on.
  • Debounced auto-mode: configurable activate / deactivate delays (defaults 1500 / 3000 ms). Manual activations are respected - policy never auto-deactivates something the user raised.
  • Policy keeps ownership across a brief manual off/on during a live auto session, and releases ownership on an arming-cancel.
  • Always-on mode is one-shot per settings period so a manual deactivate is respected.
  • Four-state machine (idle → arming → active → disarming → idle) with a disarming → active short-circuit for user change-of-mind, and a panic event that drops straight to idle from any state with a synchronous display restore.

Tray, hotkey, notifier, status indicator

  • Tray icon with context menu: Activate now, Auto-detect toggle, Show status indicator, Start with Windows, Settings, About, Exit.
  • TaskbarCreated listener re-installs the tray icon after an Explorer restart.
  • Global hotkey Ctrl + Alt + B (hardcoded in 1.0.0) toggles the overlay.
  • Toast notifications on active, idle-after-active, settings-updated, and hotkey-conflict events. arming / disarming transitions are deliberately silent to keep toggle spam out of the notification center.
  • Status indicator overlay: watermark badge at the top-center of the primary monitor ("PRIVACY SCREEN ACTIVE" + green dot). Not capture-excluded, so the remote operator sees it; invisible to the local user under the main overlay.

Settings

  • registry_config_store persists under HKCU\Software\privacy_screen. Read path never creates subkeys, so first launch leaves no footprint until the user saves. Write path is fallible - save failures surface as a toast instead of silent revert on a GPO/AV-locked registry. Enum values are range-checked so a malformed regedit write cannot land in an unknown branch.
  • Modal Settings dialog (Mode radio, four delay edits, status-indicator checkbox).
  • Start with Windows toggle writes HKCU\...\Run\privacy_screen with the absolute exe path. is_enabled verifies the stored path matches the current exe, so a moved or renamed binary shows as "off" instead of silently launching a stale copy.
  • Single-instance guard via Local\privacy_screen_singleton (session-scoped, so fast-user-switching and RDP peers each get their own instance).

Build and tests

  • C++20, MSVC /W4 /permissive- /utf-8 /Zc:__cplusplus /EHsc.
  • CMake 3.25+, Ninja Multi-Config, vcpkg (only gtest).
  • 59 gtest cases covering the state machine, event bus, policy, composite detector, AnyDesk class match, RustDesk state decider and the registry config store.

Documentation

  • README (English and Russian mirror).
  • docs/architecture.md, docs/threat-model.md, docs/tested.md, docs/install.md, docs/troubleshooting.md.
  • SECURITY.md and CONTRIBUTING.md.

Download

  • privacy_screen.exe is the standalone binary. Copy it to the host and run it; UAC prompts on first launch, then the tray icon appears.
  • privacy_screen.exe.sha256 is the SHA-256 checksum. Verify with Get-FileHash -Algorithm SHA256 privacy_screen.exe.

SHA-256: 0aa024df5933b1fd6fe19f502e9b6493bd002d85b9f865c38be174be40fa6b3f

SmartScreen

The binary is not code-signed. Windows SmartScreen will warn on first launch: click More info then Run anyway. See docs/install.md if you prefer to build from source.