Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Nov : ShFileOperationW and MAX_PATH
| Subject: | ShFileOperationW and MAX_PATH |
| Posted by: | "Ulf H" (ulf_honkanen@nospam.yahoo.com) |
| Date: | Thu, 16 Nov 2006 10:47:09 |
Hello!
Working on Unicode NT based platforms, I need to do some operations with
files and directories which path is longer than MAX_PATH. The paths are
about 2000 characters. Using API functions CopyFileW, DeleteFileW, etc in
combination with the notation \?\ works like a charm, but I have a problem
with some shell APIs.
ShFileOperationW works fine for "normal" paths but can't operate with long
paths. I though that unicode functions in combination with \?\ would work
in this case, but not.
Is there something special that must be done with ShFileOperationW or the
structure in order for it to work with LONG paths? Yes, I double zero
terminate paths, sero fill chars the structure , etc. It works fine for
normal paths, just fails with long paths.
Regards