EldoS | Feel safer!

Software components for data protection, secure storage and transfer

User cancel during file writing

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#27707
Posted: 12/18/2013 10:19:23
by Richard Hauer (Basic support level)
Joined: 12/05/2013
Posts: 26

If I am writing a large file the WriteFile event is raised many times, and the process may take some time.

During that time a user may cancel the operation (or pause in Windows 8).

Is there a way to detect these actions? It seems the CloseFile event is raised as normal in this case.

Richard.
#27710
Posted: 12/18/2013 10:45:16
by Volodymyr Zinin (EldoS Corp.)

It's safe situation for CBFS when a process which is originator of any requests, currently being processed by file system, is terminated. In this case the requests that are already being processed in the CBFS callbacks should be processed by your code as usually.

> Is there a way to detect these actions?
CBFS doesn't provide any API for it.
#27711
Posted: 12/18/2013 10:49:47
by Eugene Mayevski (EldoS Corp.)

Actually it's Explorer that lets you pause or cancel its operations. Such user-mode actions are not reflected on kernel-mode level in any special way.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 654 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!