Feature Requests item #1397932, was opened at 2006-01-06 04:47
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1397932&group_id=78018
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Markus Klinik (brudermarkus)
>Assigned to: Roger Upole (rupole)
Summary: SHFileOperation - support sequence of names
Initial Comment:
Actually, replace the line
PyErr_Format(PyExc_RuntimeError, "Sequences of names
not yet supported");
in com/win32comext/shell/src/shell.cpp
with useful code.
:)
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2006-01-12 10:49
Message:
Logged In: YES
user_id=14198
Thanks Roger - they both sound fine to me!
----------------------------------------------------------------------
Comment By: Roger Upole (rupole)
Date: 2006-01-12 02:40
Message:
Logged In: YES
user_id=771074
It might actually be easier to just let callers construct
their own string with filenames separated by NULL's.
Interestingly, this would work right now except for the
fact that _tcscpy is used which stops copying characters
when it finds a NULL byte. So basically, replace tcscpy
with memcpy and remove the sequence check altogether.
It'll take longer to put together a test case than it will
to change the C++ code. Mark, if you're okay with this
I'll go ahead and do it.
Alternately, win32api already has code to create a double-
null terminated sequence of strings for REG_MULTI_SZ. We
could move it into pywintypes so it's available for
anyplace else this type of string is used.
Roger
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551957&aid=1397932&group_id=78018
|