I would like to determine when the device is connected to the Ethernet port of the computer on which my application is running. I know how to do this with a USB port, but the problem is that the port is not USB!
If it was a USB device, I would simply override WndProc and catch a message if it is WM_DEVICECHANGE, then I am the winner, I was wondering if it was as simple as this with any device that can be connected to the port?
I don’t want to know if something is happening or the device is working, just to find out if there was an insertion or deletion.
The power
source share