[Lazarus] FileExistsUTF8 and long paths

Sven Barth pascaldragon at googlemail.com
Sun Jan 17 15:00:44 CET 2016


Am 17.01.2016 14:23 schrieb "Jürgen Hestermann" <juergen.hestermann at gmx.de>:
> >> I did not find any comments that mentions long paths
> > You need new glasses then ;-)
> > === code ==
> >   //if Filename uses ExtendedLengthPath scheme then it cannot be
expanded
> >   //AND it should not be altered by ForcePathDelims or ResolveDots
> >   //See:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247%28v=vs.85%29.aspx
> >   if (Length(Fn) > 3) and (Fn[1] = PathDelim) and (Fn[2] = PathDelim)
and
> >      (Fn[3] = '?') and (Fn[4] = PathDelim) //Do NOT use
> > AllowDirectorySeparators here!
> >      then Exit;
> > === end code ===
>
> I have read this but how is this related to \\?\ and long paths?
> What is ExtendedLengthPath scheme?
> I don't see any information about W functions and \\?\ prefix.

Did you look at the if-clause following the comment? What do you think
PathDelim + PathDelim + '?' + PathDelim evaluates to?

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160117/348b8da0/attachment-0003.html>


More information about the Lazarus mailing list