EldoS | Feel safer!

Software components for data protection, secure storage and transfer

wrong callback fired

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#16160
Posted: 03/31/2011 00:31:46
by roana  (Basic support level)
Joined: 12/05/2010
Posts: 6

Hi,

My application detects file operations using callback filter and add it to a dialog.

I have written callback events handlers like CbFltRenameOrMoveFileEventN, CbFltWriteFileEventN.

When I open a word document modify and save it, I get callback inside CbFltRenameOrMoveFileEventN instead of CbFltWriteFileEventN.

What could be the reason for such a behavior? pls help...

Thanks
Roana
#16161
Posted: 03/31/2011 00:49:20
by Eugene Mayevski (EldoS Corp.)

MS Office applications (and I guess many other applications) write data to the temporary file, then rename the temporary file into a permanent one. So the behavior you observe is pretty correct.


Sincerely yours
Eugene Mayevski
#16162
Posted: 03/31/2011 06:35:24
by Steven Lamb (Standard support level)
Joined: 05/14/2010
Posts: 3

As Eugene correctly points out, many programs write data to a temporary file. Its generally done for data integrity. Imagine the worst case scenario that the power failed during the write then at least you can do back to your previous orig file.

A brief description is [URL=http://support.microsoft.com/kb/211632]HERE[/URL]

Reply

Statistics

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