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

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
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.
CAUSE
This problem occurs because the QueryDosDeviceA function does not consider multibyte strings during string conversion from UNICODE to ANSI.
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”
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" 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
Properties

Article ID: 927893 - Last Review: 01/15/2015 09:14:29 - Revision: 2.5

  • Microsoft Windows Server 2003 Service Pack 1
  • Microsoft Windows Server 2003 Service Pack 2
  • kbnosurvey kbarchive kbwinserv2003postsp2fix kberrmsg kbprb kbfix kbbug kbpubtypekc kbqfe kbexpertiseadvanced KB927893
Feedback