Microsoft KB Archive/927893

= Error message when you run a program that uses the QueryDosDeviceA function: “ERROR_MORE_DATA” =

Article ID: 927893

Article Last Modified on 10/11/2007

-

APPLIES TO

 Microsoft Windows Server 2003 SP1, when used with:  Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)

 Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems

 Microsoft Windows Server 2003, Enterprise Edition

 Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul>

 Microsoft Windows Server 2003, Standard Edition (32-bit x86)</li></ul> </li> Microsoft Windows Server 2003 Service Pack 2, when used with:  Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)</li></ul>

 Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems</li></ul>

 Microsoft Windows Server 2003, Datacenter x64 Edition</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition</li></ul>

 Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems</li></ul>

 Microsoft Windows Server 2003, Enterprise x64 Edition</li></ul>

 <li>Microsoft Windows Server 2003, Standard Edition (32-bit x86)</li></ul>

<ul> <li>Microsoft Windows Server 2003, Standard x64 Edition</li></ul> </li></ul>

-

<div class="symptoms_section">

SYMPTOMS
You define a multibyte string for an MS-DOS device name. Then, you run a program that uses the QueryDosDeviceA function to retrieve a list of MS-DOS devices. In this scenario, you receive the following error message:

ERROR_MORE_DATA

This problem may occur even if you allocate a sufficient buffer size.

<div class="cause_section">

CAUSE
This problem occurs because the QueryDosDeviceA function does not consider multibyte strings during string conversion from UNICODE to ANSI.

<div class="resolution_section">

RESOLUTION
To resolve this problem, install the hotfix that is mentioned in the following Microsoft Knowledge Base article:

931305 Error message when you run a program that uses the QueryDosDeviceA function: “ERROR_MORE_DATA”

<div class="status_section">

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

<div class="moreinformation_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

Keywords: kberrmsg kbbug kbfix kbqfe kbprb kbpubtypekc kbexpertiseadvanced kbwinserv2003postsp2fix KB927893

-

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

© Microsoft Corporation. All rights reserved.