Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


Resolution

Windows Server 2003 service pack information

To resolve this problem, obtain the latest service pack for Windows Server 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
889100� How to obtain the latest service pack for Windows Server 2003

Windows Server 2003 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

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
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Wow64.dll5.2.3790.2758250,36827-Jul-200614:33x64
Windows Server 2003, Itanium-based versions
Collapse this tableExpand this table
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

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Windows Server 2003 Service Pack 2.

↑ Back to the top


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:

↑ Back to the top


Keywords: kbwinserv2003sp2fix, kbwinserv2003presp2fix, kbfix, kbhotfixserver, kbqfe, kbexpertiseadvanced, kbautohotfix, KB922931

↑ Back to the top

Article Info
Article ID : 922931
Revision : 10
Created on : 10/11/2007
Published on : 10/11/2007
Exists online : False
Views : 314