I know it’s stupid (I hate numbered error codes >:( :()
But here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rpc/rpc/extended_error_information_detection_locations.asp

you can find this crazy message:

Extended Error Information Detection Locations

The following table lists the Extended Error Information detection locations for Windows XP.

Code: 317
Name: WSOpen80
Description and parameters: RPC called ConnectEx but it failed. The error is the original Winsock error code.

Sorry I cannot found more… :cry: