On Wed, May 24, 2017 at 9:43 AM, Stefan Dösinger stefan@codeweavers.com wrote:
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.
No, that was not what I meant. I just said that if_nametoindex is char*, while GetAdapterIndex is a WCHAR*, I didn't say you have to use GetAdapterIndex.