Microsoft KB Archive/928646

= FIX: Error message when you call the WSADuplicateSocket function to duplicate a 32-bit socket to a 64-bit socket on a computer that uses IPv6: &quot;WSAENOTSOCK&quot; =

Article ID: 928646

Article Last Modified on 10/11/2007

-

APPLIES TO


 * Microsoft Windows XP Professional x64 Edition
 * Microsoft Windows Server 2003, Datacenter x64 Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Server 2003, Standard x64 Edition

-



SYMPTOMS
On a computer that is running Microsoft Windows XP Professional 64-bit edition or Microsoft Windows Server 2003 64-bit edition, you may receive the following error message:

WSAENOTSOCK

You may experience this problem if the following conditions are true:
 * You use Internet Protocol version 6 (IPv6).
 * You call the WSADuplicateSocket function to duplicate a 32-bit socket to a 64-bit socket.

Note This problem may not occur when a 32-bit socket tries to duplicate a 32-bit socket, or a 64-bit socket tries to duplicate a 64-bit socket.



CAUSE
This problem occurs because a 32-bit socket handle is 4 bytes and a 64-bit process handle is 8 bytes. This difference causes the WSHGetSocketInformation function to fail when an 8-byte socket handle is imported into a 4-byte socket.



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
There are no prerequisites for this hotfix.

Restart requirement
You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Windows Server 2003 SP2, Itanium-based versions


STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional query words: ipv6 64 socket duplicate WSADuplicateSocket WSAENOTSOCK

Keywords: kbtshoot kbqfe kbpubtypekc kbhotfixserver KB928646

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.