好像只要监视一个消息就可以了。例如打开Outlook Express,然后选择脱机工作,那么所有的IE上面的连接都是不可以使用的!然后再让Outlook Express联机使用,那么IE又可以连接了。因此肯定是有一个消息在进行发送,但是这个消息的值是多少,就不得而知了!
解决方案 »
- 谁给个delphi6.0+SP2
- Delphi2005下DevExpress重新编译安装问题
- 有关dll调显示窗口的问题(高分等待)
- 为了庆祝初识DELPHI .NET散尽仅有的100分,并提供DELPHI.NET的技术资料
- 请教如何获得当前程序的路径
- 在线等待!求visio 2000的安装软件!
- 用delphi如何编写?谢谢!
- 关于数据集ApplyUpdates时候的问题
- 存储过程错误处理,(高手请进)
- 奇怪的RealPlay-(高手请进)
- 在delphi中怎么把一个长整型的数设为颜色值?我从其它非delphi控件获得的颜色值是长整型,但delphi的颜色值显然不是用长整型表示,请问这时候我怎样把这个长整型的数作为delphi中控件的背景色。
- 大家在工作中只用DELPHI开发数据库相关的东东么?
我要是知道,就不在这发帖子了!
:
1.add a fastnet->TPowersock on form
2.add a button
3.
button click events add scriptbegin
if Powersock1.LocalIP = '0.0.0.0' then
caption := 'no intenet';
end;
if localIP = '0.0.0.0' then no intenet!
可能我没讲清楚,我要的是‘动态’检测,不是静态!!!也就是说当我从连网状态断开时,程序可以自己检测到,而不是人为的检测!再说你的代码段也有问题,应该是127.0.0.1才对吧?
我试了powersock-indisconncet,还是不行:(
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings--〉GlobalUserOffline
Fnugry RASNotify v.1.00
http://www.torry.net/vcl/comms/ras/fngb1401.exe
D3 FWS
By Gleb Yourchenko. Fnugry RASNotify is a simple component that can be used to notify your application when RAS connection becomes available or lost. It also allows developer to easily enumerate all RAS connections, query connection name, device or status. Fully functional
Source: Included MMJRASCon v.2.0
http://www.torry.net/vcl/comms/ras/mmjrascon.zip
D3 FWS
By Mihaela Mihaljevic-Jakic. Component that notifies you when the connection to the Internet occurs, lets you connect, informs you of all available RAS entries, lets you edit those entries, delete them and create a new one. Fully functional
Source: Included