we have found an issue with some production systems that the Anti-Virus causes the program to become slow a lot of the times and generally interferes with the activity of our software. Now as far as I know, this is exactly what the anti-virus is suppose to do in order to protect the machine from files coming in from the network. Most of the times the issue is solved by placing the process and folders of our application in the trusted list. While this is a temporary solution, in the long run it posses a security threat.
I wonder is there a known way to integrate with AV's and telling it when to scan a file? when to trust it? some kind of API both in C++ and in Java. I have seen this issue with McAfee and Symantec.
Any known strategies on how to integrate software with AV?
How does FTP servers and similar software handles such issues?
Support for McAfee and Symantec would cover most of my needs. I can't control which AV the customer places on his machine.
Edit: Just to be clear I don't want to add the process/folders to the trusted list via API. I want to perform scanning through API.