How lethudu70/win11-context-menu-swapper works
Context Menu Swapper V4 is a Windows desktop utility for switching between the classic context menu and Windows’ default behavior. The main workflow runs from the Qt window through registry inspection, backup, verified changes, and persistent undo; users can optionally restart Explorer afterward. Separate branches provide Windows-system detection, experimental elevated HKLM operations, and targeted cleanup and diagnostic export. Relationships involving omitted window handlers are shown only where README documentation supports them or are left unverified.
Main entry points: window.cpp Qt window · registry.cpp Registry state and undo · main.cpp Application entry · machine.cpp HKLM elevation helper
Components 14
Desktop interface
- Application entry
V4/src/main.cpp - Qt window
V4/src/window.cpp - Language and themes
V4/src/window.cpp
Registry operations
- Registry state and undo
V4/src/registry.cpp - Undo backups
V4/src/registry.cpp - Windows detection
V4/src/registry.cpp
Machine integration
- HKLM elevation helper
V4/src/machine.cpp
User data maintenance
- JSON cleanup
V4/src/cache.cpp - Diagnostic export
V4/src/window.cpp
Other components
- User
- Windows registry
- Windows UAC
- Windows Explorer
- User profile files
Connections 17
- User → Qt window: chooses mode
README.md - Application entry → Registry state and undo: creates
V4/src/main.cpp - Application entry → Qt window: opens
V4/src/main.cpp - Qt window → Registry state and undo: reads and changes
- Registry state and undo → Windows registry: reads and writes
V4/src/registry.cpp - Registry state and undo → Undo backups: saves and restores
README.md - Application entry → Windows detection: detects system
V4/src/main.cpp - Qt window → HKLM elevation helper: requests elevation
- HKLM elevation helper → Windows UAC: launches elevated
V4/src/machine.cpp - Application entry → HKLM elevation helper: dispatches action
V4/src/main.cpp - HKLM elevation helper → Registry state and undo: runs HKLM change
V4/src/machine.cpp - Qt window → Windows Explorer: restarts on request
- Qt window → JSON cleanup: requests cleanup
- JSON cleanup → User profile files: removes or archives
V4/src/cache.cpp - Qt window → Diagnostic export: exports diagnostics
V4/src/window.cpp - Qt window → Language and themes: sets language and theme
V4/src/window.cpp - Language and themes → User profile files: stores preferences
README.md