- 浏览: 399584 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (309)
- xaml C# wpf (0)
- scala java inner clas (1)
- Tools UML Eclipse UML2 (1)
- Timer .NET Framework (1)
- perl (6)
- python function paramter (1)
- Python Docstring (1)
- Python how to compare types (1)
- Python (8)
- java (5)
- C# (76)
- C# WPF (0)
- p4 (0)
- WPF (46)
- .net (6)
- xaml (1)
- javascript (40)
- windows (10)
- scala (4)
- winform (1)
- c++ (48)
- tools (12)
- cmd (1)
- os (0)
- CI (0)
- shell (0)
- C (2)
- haskell (49)
- functional (1)
- tool (1)
- gnu (1)
- linux (1)
- kaskell (0)
- svn (0)
- wcf (3)
- android (1)
最新评论
Maximum Path Length Limitation
In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:\some 256-character path string<NUL>" where "<NUL>" represents the invisible terminating null character for the current system codepage. (The characters < > are used here for visual clarity and cannot be part of a valid path string.)
Note File I/O functions in the Windows API convert "/" to "\" as part of converting the name to an NT-style name, except when using the "\\?\" prefix as detailed in the following sections.
The Windows API has many functions that also have Unicode versions to permit an extended-length path for a maximum total path length of 32,767 characters. This type of path is composed of components separated by backslashes, each up to the value returned in the lpMaximumComponentLength parameter of theGetVolumeInformation function (this value is commonly 255 characters). To specify an extended-length path, use the "\\?\" prefix. For example, "\\?\D:\very long path".
Note The maximum path of 32,767 characters is approximate, because the "\\?\" prefix may be expanded to a longer string by the system at run time, and this expansion applies to the total length.
The "\\?\" prefix can also be used with paths constructed according to the universal naming convention (UNC). To specify such a path using UNC, use the "\\?\UNC\" prefix. For example, "\\?\UNC\server\share", where "server" is the name of the computer and "share" is the name of the shared folder. These prefixes are not used as part of the path itself. They indicate that the path should be passed to the system with minimal modification, which means that you cannot use forward slashes to represent path separators, or a period to represent the current directory, or double dots to represent the parent directory. Because you cannot use the "\\?\" prefix with a relative path, relative paths are always limited to a total of MAX_PATH characters.
There is no need to perform any Unicode normalization on path and file name strings for use by the Windows file I/O API functions because the file system treats path and file names as an opaque sequence of WCHARs. Any normalization that your application requires should be performed with this in mind, external of any calls to related Windows file I/O API functions.
When using an API to create a directory, the specified path cannot be so long that you cannot append an 8.3 file name (that is, the directory name cannot exceedMAX_PATH minus 12).
The shell and the file system have different requirements. It is possible to create a path with the Windows API that the shell user interface is not able to interpret properly.
http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx
发表评论
-
C# - PInvoke, gotchas on the RegisterClassEx and the CreateWindowEx
2013-06-24 13:49 2571I get an exception message li ... -
c# - Use PInvoke to create simple win32 Application
2013-06-24 11:59 10946In this post, .net platform h ... -
windows - trying to create WIN32 application with PInvoke
2013-06-19 14:34 0While it is stupid to do such ... -
Windows - communication with Mailslots
2012-12-19 14:50 1154Mailslot is some mechanism on W ... -
tools - gpupdate to update the group policy settings
2012-11-20 17:23 485you can update your local group ... -
Exceed to remote connect to Linux box
2012-11-13 17:58 364in this post, I will introduce ... -
Cmd - Remove directories on Windows
2012-10-31 11:18 814on windows, there is no rm -rf ... -
windows - create symbolic/hard links
2012-09-19 14:30 734If you are working on the windo ... -
DPI and Device-Independent Pixels
2012-08-03 17:57 1420This is a repost of the dev cen ... -
Windows Print Metric/Unit Systems in System.Printing and System.Drawing.Priting
2012-08-03 15:59 1685There are two worlds in the win ... -
Windows Desktop Document and Printing, and the Printing System
2012-08-03 15:26 1265This blog is mainly a entry/int ...
相关推荐
Laser absorption spectroscopy (LAS) has become the most widely used laser spectroscopic technique for gas detection due to its ... To overcome the limitation on the dynamic range, this article reports op
DWL-G122 (rev.B & rev.C) 15ML Windows Driver Release Note Setup Version: S0045 Build: 3, 3, 3, 1218 Utility: V3.40 (E) Windows 98/ME: 1.03.00.0000 (no pass WHQL) Windows 2000/XP: 1.03.00.0000 (pass ...
IEC TS 61000-3-5-2009 Electromagnetic compatibility (EMC) –Part 3-5 Limits – Limitation of voltage fluctuations and flicker in low-voltage power supply systems for equipment with rated current ...
However, DebugFactory does not include a compiler, and a compiler path must be set up before performing compilation. When compiling simply on a trial basis, the trial-version compiler incorporated ...
TMS Components for IntraWeb allows rich design-time editing of webpages from the Delphi IDE ...TTIWTextAreaLimiter component : multi-line textbox with full client-side length limitation and display
面向对象编程语言中的多态性是一个关键的技术特性,它体现了面向对象编程的核心哲学,即通过不同的形式实现同一方法或操作。在多态性中,最常见的绑定方法是动态绑定或后期绑定。动态绑定允许在运行时决定调用哪个类...
TMS Components for IntraWeb allows rich design-time editing of webpages from the Delphi IDE ...TTIWTextAreaLimiter component : multi-line textbox with full client-side length limitation and display
SJT11363 Limitation CN2006 国标
TMS Components for IntraWeb allows rich design-time editing of webpages from the Delphi IDE ...TTIWTextAreaLimiter component : multi-line textbox with full client-side length limitation and display
Concept Farm....cause of action arising out of or relating to use of the Software or Data, including, without limitation, claims arising from malfunction or defects in the Software.
A widget that provides a textarea with a twist: it can automatically expand acronyms and shorthand words into full strings of arbitrary length. Handy for text-intensive applications that involve ...
3) PROFIT (you may see "License: trial" - don't worry, all should work without any limitation) Places where Visual Assist extension (va_x.dll and another stuff) resides in different versions of MS ...
ServeRAID M and MR10 Series SAS Controller Driver for Windows Server 2003/2008/2008 R2 (also supports MegaRAID 8480 SAS Controller) Adapters Supported: IBM Flex System Storage Expansion Node (65Y8588...
RTL8306E-CG规格书。The RTL8306E-CG is a 6-port Fast Ethernet switch controller that integrates ...• Port-based and queue-based rate limitation • 16-entry ACL for advanced packet control application
3) PROFIT (you may see "License: trial" - don't worry, all should work without any limitation) Places where Visual Assist extension (va_x.dll and another stuff) resides in different versions of MS ...
Using an acousto-optic programmable dispersive filter (AOPDF), the spectral full-width at half-maximum (FWHM) is expanded from 30 to 50 nm. Stable laser pulses with the duration of 30 fs (FWHM), ...
- Features hop-count limitation to prevent loops and stabilize the network. **Link-State Protocols** - **Examples:** OSPF, IS-IS - **Features:** - Sends local connection information to all nodes ...
3) PROFIT (you may see "License: trial" - don't worry, all should work without any limitation) Places where Visual Assist extension (va_x.dll and another stuff) resides in different versions of MS ...
3) PROFIT (you may see "License: trial" - don't worry, all should work without any limitation) Places where Visual Assist extension (va_x.dll and another stuff) resides in different versions of MS ...
3) PROFIT (you may see "License: trial" - don't worry, all should work without any limitation) Places where Visual Assist extension (va_x.dll and another stuff) resides in different versions of MS ...