Detecting network?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

H

I need to detect when a user plugs in his network cable. I can't find any example on how to do this without constantly looping to check for a default gateway or something. Any ideas?

/Martin
 
Hi Martin,

Do a ping for your server, I do not have the right example for you, but you
can search on Google for that, I know there are.

I hope this helps,

Cor
I need to detect when a user plugs in his network cable. I can't find any
example on how to do this without constantly looping to check for a default
gateway or something. Any ideas?
 
Thanks, but i was hoping to catch an event or something. Windows must register that a user is connected somehow, i just dont know where.

/Martin
 
didn't try it but maybe it is possible with WMI
check out System.Management.ManagementEventWatcher ?

if you find something let me know :-)


dominique


Martin Korsgaard said:
Hi

I need to detect when a user plugs in his network cable. I can't find any
example on how to do this without constantly looping to check for a default
gateway or something. Any ideas?
 
Back
Top