EldoS | Feel safer!

Software components for data protection, secure storage and transfer

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

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#23320
Posted: 01/30/2013 09:57:22
by Yura Sorokin (Standard support level)
Joined: 04/07/2010
Posts: 5

Hi!

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,
LPCWSTR FileName,
ACCESS_MASK DesiredAccess,
DWORD FileAttributes,
DWORD ShareMode,
CbFsFileInfo* FileInfo,
CbFsHandleInfo* HandleInfo
);
#23321
Posted: 01/30/2013 10:14:53
by Volodymyr Zinin (EldoS Corp.)

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.

Reply

Statistics

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