Changes between Initial Version and Version 1 of Ticket #2235, comment 17


Ignore:
Timestamp:
2014-05-20T16:41:53Z (11 years ago)
Author:
daira
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2235, comment 17

    initial v1  
    11Because prepending `\\?\` is not correct for a UNC path ( [http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpath] ):
    22
    3 > 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.
     3> 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.
    44
    55It is also not correct for a path that already starts with `\\?\` (or, more obscurely, `\\.\`).