I have an ancient component written in C++ that uses netbios to iterate through network adapters to return their MAC address.
All operates fine under windows 7, but since we moved to windows 10 the code fails to retrieve MAC addresses when the LAN cable is removed, all works fine with the LAN cable attached.
On Windows 7, when I use nbtstat -n, I get the netbios list as expected with the LAN cable attached or disconected. On Windows 10, I get the expected list with the LAN cable attached, but an empty list when the LAN cable is removed.
I've looked at power settings and checked netbios is turned on for TCP/IP and all looks good.
Unfortunately the component cannot be recompiled as it is so old and our build machine no longer exists.
I need a way to keep NetBios operating on Windows 10 when there is no LAN cable attached. What currently seems to happen is that the table is cleared when the LAN cable is removed and then the entries are re-registered when it is plugged back in. The table briefly shows 'registering' in the status field before showing 'registered'.
Any ideas would be most appreciated.
The answer is: