c ++,启动,服务和枚举窗口. [英] c++, startup, services and enumerating windows.

查看:98
本文介绍了c ++,启动,服务和枚举窗口.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试以编程方式删除警告.防病毒AVG说,当我的应用程序启动时,该应用程序试图连接到Internet:允许,阻止.有人建议在AV软件之前启动程序",另一个人则说:抑制防火墙警告对您没有任何好处,因为您的应用程序仍然会被阻止.请提出更好的建议,我们可能会提供咨询和诸如此类的帮助."我有一个使用Internet,SQL数据库和FTP服务的MFC C ++ Web对话框项目.因此,防病毒软件认为它是一种恶意软件,它会发出警告.我应该怎么做,我应该编写一个"Windows Service Application",并与我的MFC项目放在一起吗?

有任何建议,链接吗?

预先感谢...

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...

推荐答案

首先,如果您能够以这种方式解决AVG,也许AVG不够可靠:confused:无论如何,解决与AVG冲突的唯一方法是该软件的设置.

防火墙问题完全不同.只需将防火墙配置为允许您的服务-永久或仅一次. 禁止防火墙警告对您没有任何好处,因为您的应用程序仍将被阻止" –没有任何意义.毕竟,防火墙是为什么设计的?查看您的防火墙配置/文档.

顺便说一句,不要过分依赖本地Windows防火墙.在具有良好IT的严肃公司中,人们经常关闭本地防火墙,并依赖公司网络安全性.

据我了解,您的服务不是真正的Windows服务.这是您是否应该这样做的问题.本质上,Windows服务用于使代码始终保持工作和服务状态,尤其是在用户注销时.是否需要此取决于您的目的.应该注意的是:将代码移至Windows服务不会解决与安全性相关的阻止问题,但可能会增加一些其他问题,尤其是在最新的Windows版本中.为了克服这个问题,您需要学习Windows Service调试(不太容易)和权限问题,安全属性,ACL等.
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.


选择允许,这就是我要做的: )您应该能够信任自己的应用程序...

问候
Espen Harlinn
Select allow, that''s what I would do :) You should be able to trust your own applications ...

Regards
Espen Harlinn


你们误解了我.我希望我的应用程序绕过这些警告.
You guys misunderstood me. I would want my application to pass around these warnings.


这篇关于c ++,启动,服务和枚举窗口.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆