The QueryDosDevice function succeeds even if you specify a small buffer that cannot hold all returned information on a computer that is running an Itanium-based version or an x64-based version of Windows Server 2003 (922931)



The information in this article applies to:

  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows XP Professional x64 Edition

SYMPTOMS

Consider the following scenario:
  • You use a custom application on a computer that is running an Itanium-based version or an x64-based version of Windows Server 2003.
  • The custom application uses the QueryDosDevice function to retrieve information about MS-DOS device names.
  • The custom application or a driver uses a small buffer that cannot hold all the information about the MS-DOS device names.
In this scenario, the QueryDosDevice function always succeeds, even if you specify a small buffer that cannot hold all returned information. You expect the function to fail and to return a value of zero. The GetLastError value should be ERROR_INSUFFICIENT_BUFFER. However, no error code is set. The return value is the number of TCHARs that are stored in the buffer.

RESOLUTION

Windows Server 2003 hotfix information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Windows Server 2003 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, the computer must be running one of the following operating systems:
  • An Itanium-based version of Windows Server 2003
  • An x64-based version of Windows

Restart requirement

You must restart your computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

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, x64-based versions
File nameFile versionFile sizeDateTimePlatform
Wow64.dll5.2.3790.2758250,36827-Jul-200614:33x64
Windows Server 2003, Itanium-based versions
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Wow64.dll5.2.3790.568449,53627-Jul-200614:22IA-64NoneRTMQFE
Wow64.dll5.2.3790.2758497,15227-Jul-200614:39IA-64SP1SP1QFE


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 about the QueryDosDevice function, visit the following Microsoft Web page: For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

816915 New file naming schema for Microsoft Windows software update packages

824684 Description of the standard terminology that is used to describe Microsoft software updates



Technical support for Windows x64 editions

Your hardware manufacturer provides technical support and assistance for Microsoft Windows x64 editions. Your hardware manufacturer provides support because a Windows x64 edition was included with your hardware. Your hardware manufacturer might have customized the Windows x64 edition installation with unique components. Unique components might include specific device drivers or might include optional settings to maximize the performance of the hardware. Microsoft will provide reasonable-effort assistance if you need technical help with your Windows x64 edition. However, you might have to contact your manufacturer directly. Your manufacturer is best qualified to support the software that your manufacturer installed on the hardware.

For product information about Microsoft Windows XP Professional x64 Edition, visit the following Microsoft Web site: For product information about Microsoft Windows Server 2003 x64 editions, visit the following Microsoft Web site:

Modification Type:MinorLast Reviewed:9/12/2006
Keywords:kbWinServ2003preSP2fix kbfix kbHotfixServer kbQFE kbExpertiseAdvanced KB922931 kbAudDeveloper