Device Configuration Monitoring Service ¨C a Windows service for monitoring and managing device configurations.
1.0.0
Visual Studio 2022 or later Windows SDK 10.0+ C++17 compiler
Open DeviceConfigMonitorService.vcxproj using Visual Studio. Select either the Release or Debug configuration. Build the solution.
D:/workspace/training/DeviceConfigMonitorService/x64/Debug/DeviceConfigMonitorService.exe --console- Upon startup, configuration is automatically loaded from
C:\ProgramData\NanningTraining\DeviceConfigMonitorService\config.json(if the file does not exist, a default configuration is generated automatically). - The directory specified by
LogPathin the configuration is created automatically. - Heartbeat logs are written periodically to
service-YYYY-MM-DD.logunder that directory at the interval specified byHeartbeatIntervalSeconds. - If
EnableHeartbeat=false, no periodic heartbeat is output. - If
HeartbeatIntervalSeconds<=0, the default value of 5 seconds is used. - Press
Ctrl+Cfor graceful exit (the heartbeat thread is stopped first, then logs are flushed).