使用delphi以编程方式执行防病毒程序

Sal*_*dor 5 delphi delphi-7 antivirus-integration windows-xp-sp2

我写了一个小应用程序来使用indy组件传输文件,现在我想在传输完成时启动防病毒程序来检查文件.

如何在下载完成后执行客户端安装的防病毒程序?

更新 我需要在下载文件时执行类似于firefox的操作,然后执行机器中安装的防病毒软件.

提前致谢.

War*_* P 7

看到好人对我的另一个问题的回答.

看起来你应该抓住两个COM接口,其中一个记录在这里:

IAttachmentExecute

此接口是Windows shell接口的一部分.

这是来源中的评论

/**
 * Code overview
 *
 * Download scanner attempts to make use of one of two different virus
 * scanning interfaces available on Windows - IOfficeAntiVirus (Windows
 * 95/NT 4 and IE 5) and IAttachmentExecute (XPSP2 and up).  The latter
 * interface supports calling IOfficeAntiVirus internally, while also
 * adding support for XPSP2+ ADS forks which define security related
 * prompting on downloaded content.  
 *
 * Both interfaces are synchronous and can take a while, so it is not a
 * good idea to call either from the main thread. Some antivirus scanners can
 * take a long time to scan or the call might block while the scanner shows
 * its UI so if the user were to download many files that finished around the
 * same time, they would have to wait a while if the scanning were done on
 * exactly one other thread. Since the overhead of creating a thread is
 * relatively small compared to the time it takes to download a file and scan
 * it, a new thread is spawned for each download that is to be scanned. Since
 * most of the mozilla codebase is not threadsafe, all the information needed
 * for the scanner is gathered in the main thread in nsDownloadScanner::Scan::Start.
 * The only function of nsDownloadScanner::Scan which is invoked on another
 * thread is DoScan.
Run Code Online (Sandbox Code Playgroud)

我在这里找到了更多的实现信息.该功能称为AES.