Mombu the Microsoft Forum

Mombu the Microsoft Forum > Microsoft > Windows NT Server (TECHNET) > WSAError returns 2
REGISTER NOW! Search Today's Posts Mark Forums Read




Reply
 
Thread Tools Search this Thread Display Modes
1 18th March 08:03
andrew chalk
External User
 
Posts: 1
Default WSAError returns 2



In a call to connect() I get a return code of SOCKET_ERROR. A call to
WSAGetLastError() returns 2. This is not a Winsock-specific error code, but
in the system error codes table 2 is defined as ERROR_FILE_NOT_FOUND.

Am I correct that this is the interpretation that should be given to this
error? If so, what file is not found?

Many thanks.
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


2 18th March 08:04
stanley feng \(msft\)
External User
 
Posts: 1
Default WSAError returns 2



Which OS are you seeing this? Do you have any winsock Layered Service
Provider installed on the machine? E.g., spyware, adsware, antivirus,
firewall, etc. Does this repro 100% for certain config?

This looks odd to me because winsock doesn't return this error code for a
connect() request.

Another possibility is that some one else in the same process corrupted the
LastErrorValue of the TEB of this thread after you call connect() and before
you call WSAGetLastError(). This is an unlikely scenario.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples (if any) are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm"
  Reply With Quote
3 18th March 08:04
andrew chalk
External User
 
Posts: 1
Default WSAError returns 2


What's the easy way to determine this?
  Reply With Quote
4 18th March 08:04
arkady frenkel
External User
 
Posts: 1
Default WSAError returns 2


use Sporder.exe from Platform SDK
Arkady
  Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666