用 TTimer 不断监测吗? 太惨了! 经过不懈寻找,终于发现了 RasConnectionNotification.
The RasConnectionNotification function specifies an event object that the
system sets to the signaled state when a RAS connection is created or terminated.
http://msdn.microsoft.com/library/psdk/network/rasclnt_4re6.htm
Dear yysun:
There is so many RAS component, which can view Dial Network
state and handle Connect and disconnect event. I used to decide to include
such function in my easy rich update, but I have no time now.(You can see a
AutoStart option in settings.xml)