如何检查系统是否是代理服务器 [英] how to check whether a system is proxy server or not
本文介绍了如何检查系统是否是代理服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以告诉我如何使用c ++来检测系统是否是代理系统.我只知道如何通过命令提示符"netsh.exe winhttp show proxy"进行检查.但是我也想使用c ++代码进行检查.
can any one tell me how to detect whether a system is proxy system or not using c++. i only know it how to check via command prompt "netsh.exe winhttp show proxy". but the same i want to check using c++ code .
推荐答案
使用Microsoft功能,例如示例项目,但请注意,它正在注册表中搜索,并且可能在某些计算机或Windows上无法正常运行.
Use the Microsoft function like WinHttpGetDefaultProxyConfiguration.
Here is a sample project, but be aware it is searching in the registry and it might fail on some machines or some flavorus of Windows.
这篇关于如何检查系统是否是代理服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文