Repository navigation
v1.0.0
[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_TRANSPARENTclick-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_EXCLUDEFROMCAPTUREon the next tick after adwm.exerestart.
Detection
- Dedicated detectors for the three tools whose always-on helper process would otherwise false-positive:
- AnyDesk - matches the
ad_watermark#NNwindow class, which appears only after Accept. - RustDesk - counts
rustdesk.exeprocesses 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_ControlWinfloating session panel.
- AnyDesk - matches the
- 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/EnumWindowsfailures returnstate::unknownrather thanstate::no_remote, so a one-tick OS hiccup does not tear down an active overlay. - Composite detector short-circuits on the first
remote_activeand carries its evidence to the tray tooltip.
Policy and state
blackout_policywith 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 adisarming → activeshort-circuit for user change-of-mind, and a panic event that drops straight toidlefrom 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.
TaskbarCreatedlistener 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/disarmingtransitions 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_storepersists underHKCU\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 malformedregeditwrite cannot land in an unknown branch.- Modal Settings dialog (Mode radio, four delay edits, status-indicator checkbox).
Start with Windowstoggle writesHKCU\...\Run\privacy_screenwith the absolute exe path.is_enabledverifies 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.mdandCONTRIBUTING.md.
Download
privacy_screen.exeis the standalone binary. Copy it to the host and run it; UAC prompts on first launch, then the tray icon appears.privacy_screen.exe.sha256is the SHA-256 checksum. Verify withGet-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.