locked
GetNameInfoW - name resolution from an IP address to unicode hostname does not work from WinPE envrionment RRS feed

  • Question

  • Request your help in understanding and resolving one of the issue I see related to name resolution from a WinPE environment.

    The computer name is in Chinese and I used GetNameInfoW API to resolve the IP address to hostname. However the output I got was "â[º╔╜ZS". The API didn't return any error. I see this issue only when run from my custom WinPE environment (ADK 8.1). The API works fine from desktop and server versions of Windows. The API also works fine if I disable NetBIOS over TCP/IP.

    For sample code please see MSDN documentation for GetNameInfoW.

     

    Monday, November 25, 2013 2:01 PM