h_addr_list and multihomed domains

Can anyone tell me how to extract the first ip address in a multihomed
domain within NT?

I've tried h_addr_list but it only appears to store the last IP address.

CU8R

Brett