"Laurent Frelechoux" <Laurent
> wrote...
>I have noticed a change of behaviour from XP to Vista with regard to the
> GetBestRoute and GetBestInterface. On Vista, If I turn on my internal
> WLAN,
Hi Laurent,
The short answer is: I dunno. But a couple of guesses ... first, in Vista,
the out parameter of GetBestInterface() is a pointer to a NET_IFINDEX
structure; not a DWORD as in XP and ealier. So you may need to adjust that
in your code.
Also, what does does GetBestInterface() return? Does it complete with
NO_ERROR? Or do you get a return code like ERROR_CAN_NOT_COMPLETE or
ERROR_NOT_SUPPORTED? That might give you a clue.
Finally, note that GetBestInterface only works with the IPv4 stack. On
Vista, by default you will have the IPv4 and IPv6 stacks running
side-by-side. If your IP connection is actually over IPv6, you would need to
use GetBestInterfaceEx().
microsoft.public.windows.vista.general is a pretty user-oriented newsgroup,
there aren't many devlopers here. You may get better results asking in
places like microsoft.public.win32.programmer.networks, or the MSDN Windows
Vista Wireless SDK forum:
http://forums.microsoft.com/MSDN/Sho...=1700&SiteID=1
Good luck with it,
--
Andrew McLaren
amclar (at) optusnet dot com dot au