These are the functions Glenn was mentioning...

EnumNetworkConnections()
GetIPOptions()
SetIPOptions()