I wrote a small app to transfer files using indie components, now i want to start an antivirus program when The transfer expires check the files
Update file And then execute the installed antivirus in the machine.
Thanks in advance.
It seems that there are two com interfaces that you should grab, in which One is documented here by:
This interface is part of the Windows Shell interface.
Here is the commentary in the source
/ ** * Code overview * * Download the scanner attempt to use one of two different viruses * on Windows Available scanning interfaces - IOfficeAntiVirus (Windows * 95 / NT4 and IE 5) and IAttachmentExecute (XPSP2 and above). The latter * Interfaces support internally by calling IOfficeAntiVirus, while adding support for * * XPSP2 + ADS Forks * * * Both interfaces are synchronous and can take some time, so it is best to call from main thread Do not think. Some antivirus scanners can take a long time to scan or block the call, while the scanner displays its UI * if the user ends up at the same time to download multiple files * They have to wait a little while for scanning * done on the second thread. Since the upper part of creating a thread is relatively small, compared to downloading the file and scanning it, this new thread is generated for every downloadable scan. Since most Mozilla codebase is not threadseaf, all the information required for scanners is collected in the main thread in nsDownloadScanner :: Scan :: Start. * The NsDownloadScanner :: is the only task of the scan that applies to another * thread is DoScan
Comments
Post a Comment