日期:2014-05-17  浏览次数:21052 次

求一句话解释, 关于 windows 文件命名的. 来自 msdn.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418(v=vs.85).aspx

-------------------------
Parameters
lpFileName [in]
The directory or path, and the file name, which can include wildcard characters, for example, an asterisk (*) or a question mark (?).
This parameter should not be NULL, an invalid string (for example, an empty string or a string that is missing the terminating null character), or end in a trailing backslash (\).
If the string ends with a wildcard, period (.), or directory name, the user must have access permissions to the root and all subdirectories on the path. (这里这句话, 它说的 access permissions to the root, 这个 root 是指什么? 当前的那个目录, 还是顶层目录? 还是什么别的东西?)
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.
lpFindFileData [out]
A pointer to the WIN32_FIND_DATA structure that receives information about a found file or directory.
-------------------------------



------解决方案--------------------
我的理解就是,你用.指定的路径是个相对路径,你必须拥有这个相对路径所在的目录的从根(root)目录到指定目录的所有子目录的权限。