EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CreateNonCbFile usage

Posted: 06/26/2010 23:36:55
by ndee  (Basic support level)
Joined: 05/19/2010
Posts: 26

The manual states:
Unlike CreateFile, this method should not be used from within a callback handler, yet it bypasses further callbacks (and thus avoids possible recursion and infinite loops).

Why it should not be used in callbacks?
Posted: 06/28/2010 06:06:35
by Vladimir Cherniga (Team)

File system requests using handle created with CreateNonCbFile method are not synchronized with callbacks, read/write requests with such handles can lock the system (especially from read/write callback). This method is optimal for backup purposes.
Posted: 06/28/2010 06:14:22
by ndee  (Basic support level)
Joined: 05/19/2010
Posts: 26

That's too bad. And OpenFile can't be used for files, which were opened before filter is set. Is there any other option to open file from read callback?



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