Below is the code to determine the IP addresses of adapters on a Windows Mobile device, using IPHelper APIs.
Add Iphlpapi.lib to linker settings.