Re: FindFirstFileExW and MAX_PATH
- From: "Egbert Nierop" <egbert_nierop@xxxxxxxxxxxxxx>
- Date: Sat, 5 Jan 2008 13:20:25 +0100
"Remy Lebeau" <no.spam@xxxxxxxxxxx> wrote in message news:OHut%23wyTIHA.5208@xxxxxxxxxxxxxxxxxxxxxxx
"Egbert Nierop" <egbert_nierop@xxxxxxxxxxxxxx> wrote in message news:eRuk1nyTIHA.4696@xxxxxxxxxxxxxxxxxxxxxxx
I find it so interesting, that even a 64 bit OS, still uses that API, limited to 260 (249 in fact) characters for directories and files.
The complete path and filename together is limited to MAX_PATH characters by default, yes.
FindFirstFileExW tells us about the \\?\ prefix, to overcome that
limit, BUT the WIN32_FIND_DATA structure, contains just
260 characters for the cFilename section! :)
The cFilename member receives just the filename, not the complete path leading up to the filename. When '\\?\' is used, individual components of a path (aka each subfolder and file name) are each limited to 255 characters max. So receiving such a filename still fits within a buffer of MAX_PATH size regardless of whether '\\?\' is used or not.
I _know_ this, thanks anyway.
My question is, is there any workaround? Because of filenames are really 65K in theoretical length, or foldernames, it should be possible to enumerate through them.
The question why someone would like to do this, is not here of course, I want to reach that without limits :)
Let me ask it otherwise.
Is there a lower level routine available to enumerate through folders/files?
.
- Follow-Ups:
- Re: FindFirstFileExW and MAX_PATH
- From: Remy Lebeau
- Re: FindFirstFileExW and MAX_PATH
- From: Jochen Kalmbach [MVP]
- Re: FindFirstFileExW and MAX_PATH
- From: Alexander Grigoriev
- Re: FindFirstFileExW and MAX_PATH
- References:
- FindFirstFileExW and MAX_PATH
- From: Egbert Nierop
- Re: FindFirstFileExW and MAX_PATH
- From: Remy Lebeau
- FindFirstFileExW and MAX_PATH
- Prev by Date: bad_alloc
- Next by Date: Re: FindFirstFileExW and MAX_PATH
- Previous by thread: Re: FindFirstFileExW and MAX_PATH
- Next by thread: Re: FindFirstFileExW and MAX_PATH
- Index(es):
Relevant Pages
|
Loading