Public Function GetInterfaces() As Long
This method loads the list of available network interface cards on the PC. A plugin which provides this functionality must be loaded first before calling this method. This functionality is provided by both the System and the WinPcap plugins, but not by the None plugin. Once the method returns, details of each interface can be accessed through the NetworkInterface Property
This method returns the number of network interface cards in the list. This number will also remain available from the NumInterfaces Property.
If the currently-loaded plugin does not provide this functionality, an EthErrorNotSupported error will be raised.
The memory used by the interface list can be freed with the Free Method. The only time this needs to be done manually is when one plugin (other than None) has been loaded, Eth32ConfigPlugin object(s) with interface list(s) are open, and you are getting ready to load a different plugin with the Load Method. This is due to the fact that the loaded plugin affects the entire process, so it is up to you as the programmer to ensure that any active Eth32ConfigPlugin objects are Free'd before changing the plugin.