#include "Iphlpapi.h" PIP_ADAPTER_INFO pinfo = NULL; ULONG OutBufLen = 0; DWORD dwRet = GetAdaptersInfo(NULL, &OutBufLen); if (dwRet == ERROR_BUFFER_OVERFLOW) { pinfo = (PIP_ADAPTER_INFO)malloc(OutBufLen); dwRet = GetAdaptersInfo(pinfo,&OutBufLen); while (pinfo != NULL) { if (dwRet==ERROR_SUCCESS) { PIP_ADDR_STRING pAddressList = &(pinfo->IpAddressList); do { printf(pAddressList->IpAddress.String); pAddressList = pAddressList->Next; } while (pAddressList != NULL); } pinfo = pinfo->Next; } free(pinfo); }
Determining IP Address of a Windows Mobile device
By 42Gears Team
“Written with expertise and passion to help you understand the topic better.”
4
42Gears Team – Content Author
Published on: October 5, 2009
Subscribe to our newsletter
Stay updated with the latest news, articles, and resources on enterprise mobility.
- Weekly articles
- Actionable insights delivered once a week. No noise.
- No spam
- Your privacy matters. Unsubscribe anytime.