emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 094eb04: Fix MS-Windows build with mingw.org's MinGW


From: Robert Pluim
Subject: Re: master 094eb04: Fix MS-Windows build with mingw.org's MinGW
Date: Tue, 26 Nov 2019 19:25:54 +0100

Thanks for that Eli. Since this is expected to work on pre-Vista
versions of Windows, is the equivalent to the following hack needed in
the new network-interface-list:

            case MIB_IF_TYPE_ETHERNET:
              /* Windows before Vista reports wireless adapters as
                 Ethernet.  Work around by looking at the Description
                 string.  */
              if (strstr (adapter->Description, "Wireless "))
                {
                  ifmt_idx = WLAN;
                  if_num = wlan_count++;
                }
              else
                {
                  ifmt_idx = ETHERNET;
                  if_num = eth_count++;
                }

GetAdaptersAddresses returns wchar_t* for the description field, which
means (I hope), that there╩╝s some api for converting it appropriately.

Robert



reply via email to

[Prev in Thread] Current Thread [Next in Thread]