winapi - Get default gateway using Delphi -


does know how default gateway in delphi 2010 app? have found windows functions getadaptersaddresses, dont know how use it.

on windows xp , later use getadaptersaddresses instead of getadaptersinfo.
there set of functions implementing ip helper apis. see delphi web page @ magenta systems

edit:
remok comment : getadaptersinfo returns error_no_data if there ipv6 address configured. that's why msdn recommends using getadapteraddresses.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -