ZTree.com  | ZEN  | About...  

 Index   Back

[ZEP] Copy to use the Unicode syntax   [ZEP]

By: Ben Kent       
Date: Dec 26,2022 at 17:22

I have been investigating the implications of "resizing window via dragging frame edge ", so I have been pushing the limits, I will post separately regarding those findings.




Given
GetVolumeInformation lpMaximumComponentLength is 255 on NTFS, i.e. the max file/directory name is 255 chars
ZTree is UNICODE, and in many places uses the \\?\ Unicode syntax to manage files.

Then this works
In a directory that has a path length of 48
Accessing (reading) a filename in that directory that is 255 characters long (with path 304 characters), succeeds, so the UNICODE API must be in use.

But using ZTree to copy a file in that directory with name length=200 (with path 249, i.e. below MAX_PATH) to a name that causes MAX_PATH to be exceeded, causes the copy command to fail, so I presume that the Windows API is being used for that function.


ZEP:
The ZTree copy file command to use the UNICODE syntax, so that copies to destinations that are greater than MAX_PATH succeed.

Comment:
Could the reason for the use of the Windows API, be to get the progress bar feedback?


Thanks
Ben

110 views      
 

Messages in this Thread

 
96,194 Postings in 12,153 Threads, 350 registered users, 24 users online (1 registered, 23 guests)
Index | Admin contact |   Forum Time: Jan 27, 2023 - 2:34 am UTC  |  Hits:53,204,788  (2,021 Today )
RSS Feed