How davidcasascompetenciadigital-prog/clamguard works
ClamGuard is a Windows desktop frontend and resident file scanner built around separately installed ClamAV. The main workflow is launch and elevation, install/update the engine and signatures, run an on-demand scan, then present detections for quarantine or deletion; a separately managed Windows service watches configured folders and scans new or changed files. The README also documents Defender coordination, firewall settings, quarantine recovery, and application updates. Some links for installation and UI actions rely on README documentation because the relevant call sites were not excerpted.
Main entry points: MainForm.cs Main window · ResidentService.cs Resident service · Program.cs Application entry · Defender.cs Defender coordination
Components 22
Desktop application
- Application entry
src/Program.cs - Main window
src/MainForm.cs - Workflow dialogs
src/Dialogs.cs - UI theme
src/Theme.cs - UI controls
src/Controls.cs
Scanning and response
- On-demand scanner
src/Scanner.cs - ClamAV integration
src/ClamAv.cs - Encrypted quarantine
src/Quarantine.cs
Resident protection
- Resident service
src/ResidentService.cs - Service manager
src/ServiceManager.cs
System management
- Engine installer
src/Installer.cs - Defender coordination
src/Defender.cs - Firewall controls
src/Firewall.cs - Uninstaller
src/Uninstaller.cs - Application update checker
src/UpdateChecker.cs
Configuration and state
- Settings and scan state
src/AppSettings.cs - Data locations
src/AppPaths.cs - Application logging
src/AppLog.cs
Other components
- Windows user
- ClamAV engine
- Windows Defender
- GitHub releases
Connections 35
- Windows user → Application entry: launches
README.md - Application entry → Main window: starts UI
src/Program.cs - Application entry → Resident service: runs service mode
src/Program.cs - Application entry → Application logging: initializes
src/Program.cs - Application entry → Data locations: ensures layout
src/Program.cs - Main window → On-demand scanner: starts scans
src/MainForm.cs - Main window → ClamAV integration: queries engine
src/MainForm.cs - Main window → Settings and scan state: reads settings
src/MainForm.cs - Main window → Workflow dialogs: opens workflows
src/Dialogs.cs - Main window → Service manager: manages service
README.md - Main window → Defender coordination: queries status
src/MainForm.cs - Main window → Application update checker: checks releases
src/MainForm.cs - Main window → Uninstaller: registers uninstall
src/MainForm.cs - Main window → Firewall controls: opens controls
src/MainForm.cs - Main window → UI theme: uses styling
src/MainForm.cs - UI controls → UI theme: uses styling
src/Controls.cs - On-demand scanner → ClamAV integration: runs engine
src/Scanner.cs - ClamAV integration → ClamAV engine: invokes tools
README.md - On-demand scanner → Encrypted quarantine: offers response
README.md - Workflow dialogs → Encrypted quarantine: manages items
README.md - Workflow dialogs → Engine installer: offers installation
README.md - Engine installer → ClamAV engine: downloads and installs
README.md - Engine installer → Data locations: uses locations
src/Installer.cs - Resident service → On-demand scanner: scans watched files
src/ResidentService.cs - Resident service → ClamAV integration: manages daemon
src/ResidentService.cs - Resident service → Settings and scan state: loads configuration
src/ResidentService.cs - Resident service → Defender coordination: coordinates protection
src/ResidentService.cs - Service manager → Resident service: controls service
src/ServiceManager.cs - Defender coordination → Windows Defender: updates exclusions
README.md - Defender coordination → Data locations: stores pause marker
src/Defender.cs - Uninstaller → Resident service: removes service
src/Uninstaller.cs - Uninstaller → Defender coordination: restores protection
src/Uninstaller.cs - Application update checker → GitHub releases: checks releases
README.md - Settings and scan state → Data locations: uses file paths
src/AppSettings.cs - Application logging → Data locations: uses log directory
src/AppLog.cs