Lines Matching defs:path
100 * Checks for extended path prefixes for which normalization needs to be skipped.
104 static inline int path_is_extended(const wchar_t *path)
106 if (path[0] == L'\\' && (path[1] == L'\\' || path[1] == L'?') && path[2] == L'?' && path[3] == L'\\')
113 * Checks for a device path prefix.
118 static inline int path_is_device_path(const wchar_t *path)
120 if (path[0] == L'\\' && path[1] == L'\\' && path[2] == L'.' && path[3] == L'\\')
127 * Performs path normalization by calling GetFullPathNameW().
162 * Normalizes a Windows file or folder path.
163 * Expansion of short paths (with 8.3 path components) is currently omitted
176 * in case the path contains a '~' character.
178 * for presentation, and the extended path prefix works with 8.3 path
185 * Adds an extended path or UNC prefix to longs paths or paths ending
187 * This function expects that the path has been normalized before by
188 * calling path_normalize() and it doesn't check whether the path is
209 * we subtract 2 for the leading '\\' of the original path */
235 * Converts a file or folder path to wchar_t for use with Windows file
236 * APIs. Paths with extended path prefix (either '\\?\' or \??\') are
239 * Longs paths (>= MAX_PATH) are prefixed with the extended path or extended
240 * UNC path prefix.
244 static inline int get_extended_win32_path(const char *path, wchar_t **ppath_w)
249 if ((ret = utf8towchar(path, ppath_w)) < 0)