Receiving Notification of Network Events
Use the following functions to ensure that an application receives notification of certain network events.
Use the NotifyAddrChange function to request notification of any change that occurs in the mapping between IP addresses and interfaces on the local computer.
Similarly, the NotifyRouteChange function enables an application to request notification of any change that occurs in the IP routing table.
The notifications provided by these functions do not specify what changed; they simply specify that something changed. Use other IP Helper functions, such as GetIPAddrTable and GetBestRoute, to determine the exact nature of the change.