EldoS | Feel safer!

Software components for data protection, secure storage and transfer

User cancel during file writing

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
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.

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.
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



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