Re: How to get gateway address using GetAdaptersAddresses?
- From: "Volodymyr Shcherbyna" <v_scherbina@xxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 16:56:00 +0100
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
.
- Follow-Ups:
- Re: How to get gateway address using GetAdaptersAddresses?
- From: Tim Ward
- Re: How to get gateway address using GetAdaptersAddresses?
- References:
- How to get gateway address using GetAdaptersAddresses?
- From: Tim Ward
- How to get gateway address using GetAdaptersAddresses?
- Prev by Date: Re: nobody is replying...............
- Next by Date: Re: How to get gateway address using GetAdaptersAddresses?
- Previous by thread: How to get gateway address using GetAdaptersAddresses?
- Next by thread: Re: How to get gateway address using GetAdaptersAddresses?
- Index(es):
Relevant Pages
|
|