Microsoft KB Archive/922931

= 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 =

Article ID: 922931

Article Last Modified on 10/11/2007

-

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.



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

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, Itanium-based versions


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



MORE INFORMATION
For more information about the QueryDosDevice function, visit the following Microsoft Web page:

http://msdn2.microsoft.com/fr-fr/library/aa365461.aspx

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:

http://www.microsoft.com/windowsxp/64bit/default.mspx

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

http://www.microsoft.com/windowsserver2003/64bit/x64/default.mspx

Additional query words: Winx64 Windowsx64 64bit 64-bit

Keywords: kbfix kbqfe kbexpertiseadvanced kbhotfixserver kbwinserv2003presp2fix kbwinserv2003sp2fix KB922931

-

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

© Microsoft Corporation. All rights reserved.