To get the count of Ethernet adapters, use the GetEthernetAddressCount function.
If your Computer does not have an Ethernet card then a 0 will be returned.
Note:
Retrieving information for multiple Ethernet cards is currently only
supported on Windows x86, so this function will always return 0 or 1 on MacOS.
It was decided not to develop this function further because REALbasic now has this functionality built in, because of that then there is no Linux implementation of this function.