Microsoft KB Archive/313006

= GetVolumePathName Function Does Not Support Paths That Begin with \\?\ =

PSS ID Number: 313006

Article Last Modified on 12/4/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server SP1
 * Microsoft Windows 2000 Server SP2
 * Microsoft Windows 2000 Advanced Server SP1
 * Microsoft Windows 2000 Advanced Server SP2
 * Microsoft Windows 2000 Professional SP1
 * Microsoft Windows 2000 Professional SP2

-



This article was previously published under Q313006



SYMPTOMS
The Unicode versions of several functions permit paths that exceed the MAX_PATH length if the path has the \\?\ prefix. However, the Unicode version of the GetVolumePathName function does not support the \\?\ prefix to the file path. When you use the GetVolumePathName function, the length of a file name has a limit of MAX_PATH.



MORE INFORMATION
The GetVolumePathName function incorrectly interprets paths that you prefix with \\?\ as \\ \ (where   is the name of the server and   is the name of the share). For example, if a path begins with \\?\UNC\ \, the GetVolumePathName function incorrectly returns \\?\UNC as the volume mount point, regardless of the path length.

Keywords: kbenv kbfix kbprb kbWin2000PreSP3Fix KB313006

Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbWin2000AdvServSP1 kbWin2000AdvServSP2 kbwin2000Pro kbwin2000ProSearch kbWin2000ProSP1 kbWin2000ProSP2 kbwin2000Search kbwin2000Serv kbwin2000ServSearch kbwin2000ServSP1 kbwin2000ServSP2 kbWinAdvServSearch

-

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

© 2004 Microsoft Corporation. All rights reserved.