EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FileAttributes parameter in OnOpenFile callback in CBFS.h (v4)

Posted: 01/30/2013 09:57:22
by Yura Sorokin (Standard support level)
Joined: 04/07/2010
Posts: 5


In the latest CBFS (4.0.128) there is FileAttributes parameter in OnOpenFile callback. Why did you get it back? It had been removed from earlier versions of CBFS. There is no mention of it in the documentation, but I can see it used in the Mapper example. The prototype looks the same as for OnCreateFile:

Below is an excerpt from cbfs.h:

typedef void (*CbFsOpenFileEvent)(
CallbackFileSystem* Sender,
ACCESS_MASK DesiredAccess,
DWORD FileAttributes,
DWORD ShareMode,
CbFsFileInfo* FileInfo,
CbFsHandleInfo* HandleInfo
Posted: 01/30/2013 10:14:53
by Volodymyr Zinin (Team)

It's rather for informational purpose. Also if the UseFileCreationFlags property is set then it will contain additional information - such as how the file data will be accessed (sequentially, randomly), etc.



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