Re: How to get gateway address using GetAdaptersAddresses?



Where in what is returned by GetAdaptersAddresses is the gateway address?

Take a look into direction of GAA_FLAG_INCLUDE_GATEWAYS

What goes wrong if I ignore this instruction and use GetAdaptersInfo?

At on moment you will need to rewrite your code, because in later version of
operating systems the function GetAdaptersInfo(...) may become depricated.

--
V
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Tim Ward" <tim@xxxxxxxxxxxxxxx> wrote in message
news:60e1rfF1p6133U1@xxxxxxxxxxxxxxxxxxxxx
The gateway address is clearly visible in the results returned by
GetAdaptersInfo.

However the spec says:

"Windows Server 2003 and Windows XP: Use the GetAdaptersAddresses
function instead of GetAdaptersInfo."

Where in what is returned by GetAdaptersAddresses is the gateway address?
What goes wrong if I ignore this instruction and use GetAdaptersInfo?

--
Tim Ward - posting as an individual unless otherwise clear
Brett Ward Limited - www.brettward.co.uk
Cambridge Accommodation Notice Board - www.brettward.co.uk/canb
Cambridge City Councillor



.



Relevant Pages

  • How to get gateway address using GetAdaptersAddresses?
    ... "Windows Server 2003 and Windows XP: ... instead of GetAdaptersInfo." ... Where in what is returned by GetAdaptersAddresses is the gateway address? ... Cambridge Accommodation Notice Board - www.brettward.co.uk/canb ...
    (microsoft.public.win32.programmer.networks)
  • Re: How to get gateway address using GetAdaptersAddresses?
    ... Use GetAdaptersInfo before Vista, ... This posting is provided "AS IS" with no warranties, ... Cambridge Accommodation Notice Board - www.brettward.co.uk/canb ...
    (microsoft.public.win32.programmer.networks)