EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CreateNonCbFile usage

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#13759
Posted: 06/26/2010 23:36:55
by ndee  (Basic support level)
Joined: 05/19/2010
Posts: 26

The manual states:
Quote
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?
#13764
Posted: 06/28/2010 06:06:35
by Vladimir Cherniga (EldoS Corp.)

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.
#13765
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?

Reply

Statistics

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