Repository navigation
Releases
v1.0.2
[1.0.2] - 2026-11-30
Patch release.
Fixed
- "Start with Windows" didn't actually survive a reboot.
HKCU\...\Runcombined with therequireAdministratormanifest gets silently refused by UAC on some configurations, stripped by AV, or blocked under Startup Approved. Autostart now runs through a Scheduled Task registered under the current user with/rl HIGHEST, which carries its own elevation and starts silently.
Changed
- Default
deactivate_delay_mslowered from 3000 to 1500 ms (matchesactivate_delay_ms). The composite detector already returnsstate::unknownon transient failures, which covers the flap case the extra buffer was defending against.
Added
- Smoke tests for the RDP session detector added in 1.0.1 (wiring regressions only; the underlying
SM_REMOTESESSIONvalue is Windows's responsibility).
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: 690c0dc47a527c2e608a2f15d52586b1838319574197ec6f89c89c4b670342a5
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.
v1.0.1
[1.0.1] - 2026-11-29
Patch release. Four fixes raised in an external code review of the 1.0.0 drop.
Fixed
- A failed registry write would still show the user "Settings updated".
save()only verified that each subkey could be created; the actualRegSetValueExWreturn was dropped. The writers now returnLSTATUSandsave()reports the first non-success. MultiByteToWideChar,WideCharToMultiByteandGetWindowThreadProcessIdwere called without checking their return values. Nothing broke on valid input, but a bad UTF-8 string or a window that died betweenEnumWindowsand the callback would quietly produce garbage. Returns are checked now; the callers return empty / skip the window on failure.
Added
- Native RDP session detector via
GetSystemMetrics(SM_REMOTESESSION). Anmstscor Remote Assistance session previously fell through all three app-specific detectors and the generic process watchlist and did not raise the overlay. Now it does.
Changed
- Dropped
std::atomicfromoverlay_blackout_controller::blanked_. Nothing touches it off the main thread; the atomic was leftover defensive noise.
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: 7235239d5885ffaf4d208b278fc90fab31a2d81bd0f82c37ca931db9db820ed5
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.
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.