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

Hotfix information

A supported hotfix is 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 software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

The computer must be running Windows Server 2003 Service Pack 2 (SP2) or Windows Server 2003 Service Pack 1 (SP1) to install this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File 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, x86-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Kernel32.dll5.2.3790.28621,039,36016-Jan-200717:43x86SP1SP1QFE
Modem.sys5.2.3790.286231,23216-Jan-200710:52x86SP1SP1QFE
Kernel32.dll5.2.3790.40061,037,82416-Jan-200718:03x86SP2SP2QFE
Modem.sys5.2.3790.400631,23216-Jan-200713:33x86SP2SP2QFE
Windows Server 2003, x64-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Kernel32.dll5.2.3790.28621,502,72016-Jan-200705:58x64SP1SP1QFE
Modem.sys5.2.3790.286249,66416-Jan-200705:58x64SP1SP1QFE
Wkernel32.dll5.2.3790.28621,008,64016-Jan-200705:58x86SP1WOW
Kernel32.dll5.2.3790.40061,503,74416-Jan-200706:03x64SP2SP2QFE
Modem.sys5.2.3790.400649,66416-Jan-200706:03x64SP2SP2QFE
Wkernel32.dll5.2.3790.40061,009,66416-Jan-200706:03x86SP2WOW
Windows Server 2003, Itanium-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Kernel32.dll5.2.3790.28621,967,10416-Jan-200705:58IA-64SP1SP1QFE
Modem.sys5.2.3790.2862105,47216-Jan-200705:58IA-64SP1SP1QFE
Wkernel32.dll5.2.3790.28621,008,64016-Jan-200705:58x86SP1WOW
Kernel32.dll5.2.3790.40061,970,68816-Jan-200706:03IA-64SP2SP2QFE
Modem.sys5.2.3790.4006105,47216-Jan-200706:03IA-64SP2SP2QFE
Wkernel32.dll5.2.3790.40061,009,66416-Jan-200706:03x86SP2WOW
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:
824684Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 931305 - Last Review: 01/15/2015 18:14:57 - Revision: 3.0

Microsoft Windows Server 2003 Service Pack 1, Microsoft Windows Server 2003 Service Pack 2

  • kbnosurvey kbarchive kbautohotfix kbHotfixServer kberrmsg kbqfe kbexpertiseadvanced KB931305
Feedback