Create a VB6 function "UpdateMAC", which inputs a string of MAC address, example:
it will update the NetworkAddress value of the currently connected network adapter and restart the adapter such that the new MAC will be used. The attached code shows how to get the currently connected adapter, also has code to restart the adapter, but it does not work.
When the network adapter is being restated, no window should show like "Enabling...". No extra component or DLL may be added to the project. It is possible to properly restart the adapter using API "SetupDiSetClassInstallParams"
This page may help more:
[url removed, login to view]
Must work on Windows 2000 and Windows 7, 32/64 bit.