Windows 7 - CopyHere Method Cancel

Asked By AG on 11-Nov-07 03:52 PM
I am using an adaptation of the code I found at
http://www.rondebruin.nl/windowsxpzip.htm
to zip some files in VBA (Access).
It works fine, but in adding error handling, etc, I can't seem to find a way
to determine if the user pressed the cancel button of the UI.
The CopyHere method http://msdn2.microsoft.com/en-us/library/bb787866.aspx
specifies some parameters, one of which is 'do not display a progress
dialog', but they seem to be ignored.

Can anyone tell me how to detect if the cancel button was clicked, or the
process failed for some other reason.
There are no errors generated.

--

AG
Email: discussATadhdataDOTcom




wawan replied on 12-Nov-07 01:17 AM
Hi AG,

First, please note each shell folder is backed by a shell namespace
extension (NSE for short). Each NSE will choose to have its own mechanism
to copy/move/delete data items (file/folder for a normal file system path).
The documentation you referenced about CopyHere method only applies to
normal file system path. That's why you using option 4 to disable the
progress dialog doesn't work for a zip folder.

On the other hand, last time I checked with shell team, currently the zip
file NSE's functionality is only meant to be used with user interaction. In
other words, programmatically access to the zip file NSE is not officially
supported.

Thanks for your understanding.



Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
AG replied on 12-Nov-07 07:53 AM
Thanks Walter,
Could you please elaborate on what you mean by 'normal file system path'?
Do you mean UI?

--

AG
Email: discussATadhdataDOTcom
wawan replied on 12-Nov-07 10:13 PM
Hi AG,

What I meant by "normal file system path" is a physical folder in file
system. For an explorer window view of a zip file, it's handled by a
special shell namespace extension that is registered on Windows XP or above
to handle zip files. (The file is %windir%\system32\zipfldr.dll, if you
unregister it by using "regsvr32 /u zipfldr.dll" you will not be able to
view a zip file as a folder)


Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
AG replied on 13-Nov-07 08:03 AM
Thank you.

--

AG
Email: discussATadhdataDOTcom