[PATCH] iphlpapi: Implement if_nametoindex.

Bruno Jesus 00cpxxx at gmail.com
Wed May 24 07:46:47 CDT 2017


On Wed, May 24, 2017 at 9:43 AM, Stefan Dösinger <stefan at codeweavers.com> wrote:
>> On Wed, May 24, 2017 at 9:17 AM, Stefan Dösinger <stefan at 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.



More information about the wine-devel mailing list