I'm starting this project a second time. The first time the coder reported good results and seemed to have nearly finished it but then suddenly stopped communication. His profile here is also inactive since then. I hope to receive a result this time. (In case it helps: I can send you descriptions that he sent me, but no code)
This work must be done in Delphi.
Automatically recognize available networks and network changes, trigger events (run functions) based on the recognized networks.
I need a possibility to react on changes occuring in the network the computer is in.
The Demo UI should consist only of two buttons and one Memo. One button starts the event listener the other one stops it. When the event listener is active als network changes (as described below) should be logged in the Memo.
That event listener should run without any additional user interaction and without using any special system ressources. (too much RAM or CPU)
-> WiFi: Get the event handle / trigger for the event when Windows recognizes new WiFi networks. When a change occurs (or Windows simply scans all available WiFi networks by itself) get the SSIDs and MACs of the WiFi networks and list them.
--> MUST run on XP SP2 and newer (Vista, 7)
1. Recognize and log LAN changes: cable disconnect, cable connect, recognizing network (DHCP retrieving),...
2. Recognize the connected network! Windows Vista does that by getting the MAC address of the DHCP server or gateway. (Do some research on that).
--> MUST run on Win2000 and newer (XP, Vista, 7)
Based on your work I should be able to trigger different actions depending on the network the computer is in.