The information in this article applies to:
SUMMARYApplications must manage long file and printer names correctly to be fully compatible with 32-bit versions of Windows. Operating system support for long file and printer names is consistent across all file systems supported by the various 32-bit Windows platforms. MORE INFORMATION
As file systems and operating systems become more complex, the need to support long file and printer names is increasingly important. Long file names can be up to the globally defined constant MAX_PATH characters in most cases. Exceptions to this maximum are noted in the SDK for relevant functions. For example, CreateDirectory takes a default string size limit of 248 characters.
Note: On Windows NT, the Unicode versions of the CreateDirectory, FindFirstFile, GetFileAttributes, and SetFileAttributes functions allow paths to exceed the MAX_PATH length if the path has the \\?\ or \\?\UNC\ prefix. These prefixes turn off path parsing. Use the \\?\ prefix with paths for local storage devices and the \\?\UNC\ prefix with paths having the Universal Naming Convention (UNC) format. An example of a UNC path is \\machine\sharename. REFERENCESFor more information about supporting long file names, consult the Files and I/O information in the Base Services section of the Platform SDK Documentation. Additional query words: compatguidestability
Keywords : kbKernBase kbWinOS2000 kbSDKPlatform kbSDKWin32 |
Last Reviewed: June 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |