EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Cancel Explorer Copy process

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#21530
Posted: 09/14/2012 05:10:22
by ttran Tran (Priority Standard support level)
Joined: 08/20/2012
Posts: 35

Hello,
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 ?

Thanks,
Tran
#21544
Posted: 09/14/2012 11:05:24
by Volodymyr Zinin (EldoS Corp.)

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.
#21599
Posted: 09/18/2012 13:15:45
by ttran Tran (Priority Standard support level)
Joined: 08/20/2012
Posts: 35

Thanks. It works

Reply

Statistics

Topic viewed 760 times

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




|

Back to top

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

Got it!