I am writing a newtowrk application that needs to obtain the local machines IP address, Gateway address and subnet mask.
I can get the locl IP using gethostbyname(), but I need help, with examples if possible.
1) How can I get the gateway address?
2) How can I get the Subnet Mask?
I have used netsh in the past, If this is the answer then how do I get the addresses into variables that I can use to display the addresses in controls.