See the nice person's answer to my other question.
on dirait qu'il ya deux interfaces COM, vous devez saisir, dont un est consigné par écrit ici:
IAttachmentExecute
Cette interface fait partie des interfaces shell Windows.
ici est le commentaire de la source
/**
* 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.
I found some more implementation information here. The feature is called AES.
Ne pas la plupart des programmes antivirus crochet dans le système de fichiers et de détecter de nouveaux fichiers de toute façon? –
Demandez-vous comment démarrer une application automatiquement sur l'ordinateur de l'autre utilisateur (pas le vôtre)? Es-tu en train d'essayer de faire un service? Vous avez écrit un programme anti-virus ou vous voulez que le programme anti-virus scanne votre programme qui n'est pas un anti-virus? Je suis confus. –
@Warren P, j'ai mis à jour ma question. juste j'ai besoin de scanner un fichier en utilisant l'antivirus installé lorsque mon application cliente a terminé le téléchargement. – Salvador