Microsoft KB Archive/817859

= The gethostbyname function may not resolve names that start with a numeric character =

Article ID: 817859

Article Last Modified on 4/5/2004

-

APPLIES TO


 * Microsoft Windows CE 3.0 for the Handheld PC
 * Microsoft Windows CE .NET 4.0
 * Microsoft Windows CE .NET 4.1
 * Microsoft Pocket PC 2002 Software Standard Edition
 * Microsoft Windows Mobile 2003 software for Pocket PC Standard Edition

-



SYMPTOMS
The Windows Socket gethostbyname function may not succeed if the host name parameter begins with a numeric character. When the function cannot resolve the host name, WSAGetLastError returns the following error code:

11001 (WSAHOST_NOT_FOUND)

On a device that is based on Microsoft Windows CE for Pocket PC 2002, and if the machine name of the server begins with a numeric character, you cannot synchronize with the ActiveSync server.



For users of Platform Builder version 4.1, the problem is resolved by a hotfix. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

329101 The GetHostbyName function does not work with a host name string that contains international characters



WORKAROUND
You can work around this issue on the following products:
 * Microsoft Windows CE for Pocket PC 2002
 * Microsoft Windows CE 3.0
 * Microsoft Windows CE .NET 4.0
 * Microsoft Windows CE .NET 4.1

To work around this problem, use an alphabet character as the first character in the machine name scheme in the network.



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

This problem was corrected in Microsoft Windows CE .NET 4.2 and Microsoft Windows Mobile 2003 for Pocket PC.

Additional query words: net sync PPC alphanumeric alphabetical

Keywords: kbprb KB817859

-

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

© Microsoft Corporation. All rights reserved.