Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I was trying to remove the warning programacally. When my application starts, the anti-virus AVG says, the application trying to connect to the internet: allow, block. Someone suggested, "Make your program start-up before the AV Software" and another person said: "Suppressing a firewall warning won't do you any good, as your application will still be blocked. Come up with something better and we may help out with advisories and whatnot." I have a MFC C++ web dialog project which uses internet, SQL database and FTP service. So anti-virus think it is a malware, it give a warning. How should I go about it, should I write a "windows service application", and put together with my MFC project?

Any suggestion , links?

Thanks in advance...
Posted

First of all, if you're able to work around AVG this way, maybe AVG is not reliable enough :confused: Anyway, the only way to resolve the conflict with AVG is the settings of this software.

The firewall issue is completely different. Firewall should simply be configured to allow your service -- permanently or just once. "Suppressing a firewall warning won't do you any good, as your application will still be blocked" -- makes no sense. After all, what are firewalls are designed for? Look at your firewall configuration/documentation.

By the way, don't rely too much on local Windows firewall. In serious companies with good IT people often switch off local firewalls and rely on company network security.

As I understand, your service is not a real Windows Service. This is the question if you should. Essentially, the Windows Service is used to keep the code working and serving all the time, in particular, when the users log off. If you need this or not solely depends on your purposes. It should be noted: moving of your code to the Windows Service will not resolve security-related blocking issues, but may add some more, especially in the latest Windows versions. To overcome this, you need to learn Windows Service debugging (not so easy) and permission issues, securiry attributes, ACLs, etc.
 
Share this answer
 
v2
Select allow, that's what I would do :) You should be able to trust your own applications ...

Regards
Espen Harlinn
 
Share this answer
 
v2
You guys misunderstood me. I would want my application to pass around these warnings.
 
Share this answer
 
You guys misunderstood me. I would want my application to pass around these warnings, which would run on a target machine, not only my machine but on others machines. There are other anti-virus programs, like Norton and many others, I am not sure how they work.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 16-Jan-11 19:22pm    
Look at my answer -- it is not about target machines, but other machines. I think I understood.
Windows Service debugging and permission issues, securiry attributes, ACLs, etc.

Where and I would learn this?

Links examples, code and etc...
 
Share this answer
 
Comments
fjdiewornncalwe 16-Jan-11 23:03pm    
You forgot the most important of them all... "GOOGLE"
Someone suggested to use
VB
Why not use Internet Explorer COM interface to do that ?
I don't think your antivirus program will complain about that.


I never done INTERNET EXPLORER COM interface, I need more info. how this can be done. I have MFC C++ dialog base project, how this can be done?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900