Listen to System Event

  • Thread starter Thread starter bbembi_de
  • Start date Start date
B

bbembi_de

Hello,

I want to get an event every time the ip address of a network adapter
changes.
How can I do it with C# and .Net1.1?

Alternatively all events of the Dhcp Source would do too.
Unfortunatly the EventLog doesn't get an event if the dhcp request
works correctly.

Help please.

Bye bembi
 
Hi bembi,

..NET 2.0:

System.Net.NetworkInformation.NetworkChange class has two events:

NetworkAddressChanged and NetworkAvailabilityChanged

HTH
 
Hello again,

too bad I can't use .Net 2.0.

Isn't there any possibility to do this with .Net1.1?

bye bembi
 
P/Invoke WSAEnumNetworkEvents

Thanks for the reply. Any futher tipps how to do that?

bye bembi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top