EldoS | Feel safer!

Software components for data protection, secure storage and transfer

File Attributes

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#15970
Posted: 03/03/2011 14:20:56
by Sid Schipper (Standard support level)
Joined: 03/14/2008
Posts: 285

In my callback for the OnCloseFileEvent I am seeing an interesting problem. I have a message that I log at the beginning of the callback function that logs the name of the file being closed and the FileAttributes from the CbFsFileInfo structure that is passed into the callback. For some reason the callback gets called not only for files but for directories also. Thats OK, I can live with that, but the interesting thing is that for some directories that are being closed the File Attributes are set to 128 instead of 16. The Winnt.h defines that I use are that FILE_ATTRIBUTE_NORMAL is 128 and FILE_ATTRIBUTE_DIRECTORY is 16, so I'd expect all the directories to have FileAttributes set to 16, but they don't. I haven't been able to determine why some of the directories do have the proper attributes and some don't. Anybody out there have any insight into this?
#15974
Posted: 03/04/2011 01:15:18
by Volodymyr Zinin (EldoS Corp.)

Hello Sid,

All directories must have FILE_ATTRIBUTE_DIRECTORY set. So there is an error somewhere. Is the problem reproducible with one of the CallbackFS samples?
#15975
Posted: 03/04/2011 02:14:45
by Eugene Mayevski (EldoS Corp.)

I've moved the question to HelpDesk so that we can work on the issue.


Sincerely yours
Eugene Mayevski

Reply

Statistics

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