I used to retrieve IP and NIC information by querying windows registry. Now I'm trying to use GetAdapterAddresses() API. Using GetAdapterAddresses() to get IP is not that easy, I need to dig a long deep as I check some examples so far, anyways my question is: Calling this API will return success on all versions of Windows ie: 32bits & 64bits ?
Though Microsoft has not opened any source any one can give me an idea from where this API is actually retrieving Windows IP information.?. Is it reading Registry or some windows file.
... anyways which one is better. API or Registry manipulation ?
Better is using API.
What if Microsoft will change some registry entries in the next Windows version? Then they also change corresponding API code so you won't need to change anything in your projects!