Network connections

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi,

Can anybody give me an idea on how to achieve the following:

1 - Detect when a network connection (under XP) changes between
active/disabled - must be some kind of events fired...

2 - Enable and disable a network connection programatically


Cheers
 
Bob said:
Hi,

Can anybody give me an idea on how to achieve the following:

1 - Detect when a network connection (under XP) changes between
active/disabled - must be some kind of events fired...

2 - Enable and disable a network connection programatically


Cheers
I am not 100% sure of this, but you could look into using the
System.Management namespace to subscribe to an event to capture these
changes. You might also be able to use this to enable/disable the
network connection this way as well (you would have to have sufficient
priveledges most likely).

http://msdn.microsoft.com/library/d...toandconsumingmanagementevents.asp?frame=true

HTH...
Chris
 
Back
Top