EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Cancel Explorer Copy process

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 09/14/2012 05:10:22
by ttran Tran (Priority Standard support level)
Joined: 08/20/2012
Posts: 35

Consider the case when we drag-and-drop a big and complicated folder from hardisk C: into our virtual disk - an Explorer copying task.
OK, we get the default Explorer coying progress window with the Cancel button. Now from our program, if we cancel the whole copying (or another name, uploading to remote server) process, this progress window is still there and we have to press the Cancel button on this window.
Are there any way from our application to inform Explorer that we would like to stop the coying process ? We do not need to press the Cancel button ?

Posted: 09/14/2012 11:05:24
by Volodymyr Zinin (Team)

Try to return (throw) some error from callbacks used during the copying (OnOpen, OnWrite, OnSetFileSize, etc). Different errors can cause different behavior. So it's better to try just for experiment to throw ERROR_ACCESS_DENIED first.
Posted: 09/18/2012 13:15:45
by ttran Tran (Priority Standard support level)
Joined: 08/20/2012
Posts: 35

Thanks. It works



Topic viewed 878 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!