Am 24.05.2017 um 14:36 schrieb Bruno Jesus 00cpxxx@gmail.com:
On Wed, May 24, 2017 at 9:17 AM, Stefan Dösinger stefan@codeweavers.com wrote:
I’m not sure what you mean by "ASCII version“. getInterfaceIndexByName also accepts a const char * rather than a WCHAR *.
I meant a "char* version of GetAdapterIndex", which receives a WCHAR*.
Calling GetAdapterIndex seems kinda wasteful as well, we’d have to convert to WCHAR, then GetAdapterIndex converts back to char and calls getInterfaceIndexByName, which calls if_nametoindex, which is where we started.