quote:
Originally posted by whiz
although I don't know what's with the "\\?\" bit.
In a very simple nutshell, that is a special indication, prefix if you will, to tell Windows that a (very) long path name will follow.
More and proper details can be found on the
MSDN library.
Also see the very first link in that article about the RemoveDirectory API, which Matty pointed to earlier:quote:
In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend "\\?\" to the path. For more information, see Naming a File.
Anyways, the point is that it is not wrong. In fact, it is mandatory to be there for many Unicode APIs if you don't want the run into the default path length limitation (which is normally just 260 characters).