EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Question on correlation between callback and notification

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#22484
Posted: 11/14/2012 23:29:34
by Leo Fu (Basic support level)
Joined: 11/14/2012
Posts: 2

Hi,

I wonder if it is possible to correlate callback and notification events for file deletion. The scenario is that I want to know when a user is trying to delete a file and that file is actually get deleted from the file system successfully. I tried to use GetOriginatorProcessId() but the IDs I obtained from CanFileBeDeletedC and CanFileBeDeletedN are different (e.g. 3877608 and 3878208). Any suggestion please?

Leo Fu
#22486
Posted: 11/15/2012 08:19:09
by Vladimir Cherniga (Team)

Hi,
Quote
I wonder if it is possible to correlate callback and notification events for file deletion. The scenario is that I want to know when a user is trying to delete a file and that file is actually get deleted from the file system successfully.

The real file deletion may be postponed until the last reference to the file will be released. In other words, the last close request completed.
Quote
tried to use GetOriginatorProcessId() but the IDs I obtained from CanFileBeDeletedC and CanFileBeDeletedN are different (e.g. 3877608 and 3878208). Any suggestion please?

It should be the same values. How could we reproduce the problem ?
#22487
Posted: 11/15/2012 08:56:36
by Vladimir Cherniga (Team)

There is another way to delete file - open file with a flag DeleteOnClose. You should consider this case as well.
#22490
Posted: 11/15/2012 23:10:17
by Leo Fu (Basic support level)
Joined: 11/14/2012
Posts: 2

Okay, GetOriginatorProcessId from CanFileBeDeletedC and CanFileBeDeletedN are indeed the same. Thanks!

Reply

Statistics

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