I am writing an application, which get a list of all network interfaces, with their IP address, MAC address and other info.
The interfaces which are connected with internet have obviously IP addresses. For example, My WLAN interface has IP address. For other interfaces, for example if I plug in a 3G card, it gets IP address when I click the CONNECT button on the software came with this card.
I dont want to use that Software to connect my 3G card and get IP address. Rather I want to enable that interface and get IP address from DHCP server programmatically in C++.
In simplest words I want my network card / adapter should be connected and be assigned IP address using C++.
Note: I am using Windows Vista.
Waiting for reply.