Activate file checking with Delphi application

We have an application that monitors the folder for file deletion and runs an anti-virus scan before using any incoming files.

This must be part of a Delphi application and the file must pass a virus scan, otherwise we will delete the file.

I know there are shell options available, however this one should be a direct API call to the registered AV engine installed on the PC.

We've covered the MSOffice AntiVirus API, but this only seems to be the case for developers looking to make scanning applications that run when the applications are hosted. We need the opposite.

Any suggestions regarding the virus scanning engine and API are greatly appreciated.

Thanks in advance.

+1


source to share


2 answers


The procedure is described here under "Internet Explorer 5 and Office 2000".

The Delphi category enumeration implementation is available here (GetRegisteredAntiviruses). Just fill in TMsoavinfo and call Scan .



Most AV programs allow you to scan a file by passing it as a single argument on the command line. I believe Windows Live Messenger uses this method.

+2


source


Check mail servers with virus checking. VPOP3 supports two scanners, one of which is Sophos (business oriented AV). This will take you to the API.



+1


source







All Articles