
This is an application that monitors the local host for IP address changes and notifies a list of people by e-mail if the IP address changes. Both the IP address and the e-mail list are stored between sessions, so it will work, for instance, if the IP change is detected following a re-boot. The code also illustrates a number of useful techniques, such as how to send e-mail via MAPI and how to Winsock API to resolve the local IP address.