Is there any Win32 API call to get the local machine IP adress if its connected to the network?

Thanks.