|nProgram||(Long) Number of the application (from 1 to 5) in PmWatchDog.ini|
|nCounter||(Long) Value which the WatchDog counter is set to|
WatchDog.exe is a program that watches up to 5 applications. Each application can have set up its own counter in the WatchDog program. WatchDog decreases these counters in regular interval (decrements the value by 1). If some counter reaches the value 0, then the WatchDog presumes that the application stops off (the application halted or somebody terminated it, etc.) and restart it over again (or restart the whole OS Windows).
So as the WatchDog wouldn't restart the PROMOTIC application, the application must regularly call the WDogRefresh method. This application sets its counter in the WatchDog program to the nCounter value. The value nCounter must be big enough so as the WatchDog wouldn't zeroized the counter before the application calls the WDogRefresh method over again.