同上
解决方案 »
- vc2008相关问题
- 认知道word的接口
- 请问:1、我的摄像头电源是15v的,我想通过串口或并口检测此摄像头的开或者关的状态,请行家们给点思路2、该怎样把电源线和接口线连接起来
- 有没有用vc连过Watcom SQL 4.0数据库的,插入8万条数据后速度奇慢,什么原因?
- 如何将CList声明为一个cdialog的成员变量?
- 100分寻求资料
- 请问AFX_DATA,AFX_MSG_MAP...这一类语句什么时候用?
- 碰到线程内存申请奇怪问题。
- 请问,如何取得再ie中设置的代理服务器信息
- .max文件可以保存关键帧吗?opengl如何加载.max文件?
- 帮我找N本E书,给你100分~~
- 关于"microsoft communications control"的一些问题(在线等待)
====
InternetGetConnectedState returns TRUE if there is an Internet connection,
or FALSE otherwise. This is a sample code: DWORD flag;
BOOL con = InternetGetConnectedState(&flag,0);InternetGetConnectedState will usually give you the information you need,
but sometimes it returns a wrong result. One problem with
InternetGetConnectedState is that if an internet connection has never been
configured on a machine (even if there is no network card) it will return
TRUE and lpdwFlags will be set to INTERNET_CONNECTION_LAN. Obviously it
does not have a legitimate connection to the internet in this case.
For more inforamtion about InternetGetConnectedState please see:
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/winin
et/reference/functions/internetgetconnectedstate.asp