EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CreateNonCbFile usage

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