inet control error handling

is there any good doc to look what type of errors the inet control returns ?

is it better to use inet or wininet or winsock ?