Re: [Qemu-devel] 答复: Re: [PATCH v2] qga: replace GetIfEntry

2017-11-13 Thread Michael Roth
Quoting lu.zhip...@zte.com.cn (2017-11-09 05:26:15) > i think the code is better > > if (OSver.dwMajorVersion >= 6) { > MIB_IF_ROW2 aMib_ifrow; > typedef NETIOAPI_API (WINAPI *getifentry2_t)(PMIB_IF_ROW2 Row); > memset(&aMib_ifrow, 0, sizeof(aMib_ifrow)); > aMib_ifrow.Int

[Qemu-devel] 答复: Re: [PATCH v2] qga: replace GetIfEntry

2017-11-09 Thread lu.zhipeng
i think the code is better if (OSver.dwMajorVersion >= 6) { MIB_IF_ROW2 aMib_ifrow; typedef NETIOAPI_API (WINAPI *getifentry2_t)(PMIB_IF_ROW2 Row); memset(&aMib_ifrow, 0, sizeof(aMib_ifrow)); aMib_ifrow.InterfaceIndex = nicId; HMODULE module = GetModuleHandle("iphlp

[Qemu-devel] 答复: Re: [PATCH v2] qga: replace GetIfEntry

2017-11-07 Thread lu.zhipeng
>I have the modified patch staged here: > > https://github.com/mdroth/qemu/commit/de597a8b27722ce4f9cc660f930f7dccc712712d>Let > me know if it looks okay and I'll send a pull request for rc1 the code right, but running QGA on the Windows XP, error: can not find the link to GetIfEntry2