[EMAIL PROTECTED] wrote:
Meanwhile, now the freshclam process doesn't get stopped when the ClamAV service is stopped, and ANOTHER freshclam process is started each time the ClamAV service is started. Stopping these freshclam processes requires either rebooting the system or the use of an externally acquired tool (tkill.exe from the windows resource kit, or a tool from sysinternals.com (pskill, or procexp)).When the ClamAV service is stopping, you might want to try cleanly stopping freshclam with: GenerateConsoleCtrlEvent(CTRL_C_EVENT, dwProcessId); Where dwProcessId is the process ID of the freshclam process saved when the process was created.
That code has been in there for some time, but it fails - it generates error 6 - incorrect handle. I am aware of the issue.
- Mark Pizzolato
-Nigel -- Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter. NJH Music, Barnsley, UK. ICQ#20252325 [EMAIL PROTECTED] http://www.bandsman.co.uk
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32
