EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CreationDisposition in CreateFile callback/event

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#13087
Posted: 04/23/2010 07:45:53
by Roberto Perez (Basic support level)
Joined: 04/23/2010
Posts: 1

Hi,

I'm using CBFS as I'm trying to create a virtual Disk.

I wonder why there isn't the CreationDisposition value in the OnCreateFile event.

If the file that i'm trying to create does exist, what am I suppose to do if I don't know the value of this parameter?

Thanks in advance.
Cheers.
#13093
Posted: 04/23/2010 11:54:56
by Volodymyr Zinin (EldoS Corp.)

Hello Roberto,

In order to simplify the user mode interface CallbackFS handles CreationDisposition itself and calls either OnCreate or OnOpen event. It knows whether the created/opened file exists because the information about it is gathered before by means of the OnGetFileInfo event. Also the CallbackFS driver has an internal meta data cache where it holds information about recently used files/directories.

Quote
Roberto Perez wrote:
If the file that i'm trying to create does exist, what am I suppose to do if I don't know the value of this parameter?

Return the ERROR_ALREADY_EXISTS error. But this situation can occur only if the file has been added not though the CallbackFS disk and NotifyDirectoryChange hasn't been called for it.

Reply

Statistics

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