views:

8

answers:

1

Hi Could any one share about Network Adaptor configured with ip address or not eithor using dhcp or manual. How to check using vc++/Windows api?

A: 

Use GetAdapterAddresses in the IP Helper section of Win32.

The GetAdaptersAddresses function retrieves the addresses associated with the adapters on the local computer.

This returns very detailed information, including DHCP/DNS settings for this adapter, in a list of IP_ADAPTER_ADDRESSES structures. The API is non-trivial to use so follow the docs carefully.

Steve Townsend
Thanks for looking in my problem. I will try ur suggestion.
Haranadh Gupta