.net API to the local virus scan engine?

1.5k views Asked by At

I've searched now for more hours about information on how to scan files in .NET (C#) with the local Windows registered virus scan engine. Found e.g. this (.NET virus scanning API) and some older other examples... It seems that some virus scan engines like MacAfee or Bitdefender or clamav do have good APIs. Even virustotal.com seems to be supported with good APIs.

But how can I access the API of the local installed virus engine? Is it possible at all? I expected stuff like this:

Using System.Security.AntiMaleware;
...
MalewareEngine me = new MalewareEngine(...);
var result = me.scanFile("...test.txt...");
...

I am working on a project with a local .NET (C#) application and I handle a lot of files and so I just want to check for malware; if it is possible in this step: I don't want to upload the file to a cloud malware check (planned as a alternative option).

0

There are 0 answers