FW: FltWriteFile during IRP_MJ_SET_INFORMATION

Hi Dan,

Many thanks for your reply. The set information call that I was
receiving was with the IRP_PAGING_IO and IRP_NOCACHE not set. Here I was
calling FltWriteFile with FLT_IO_OPERATION_FLAGS set to either one of the
specified flags or combination of flags (e.g.
FLTFL_IO_OPERATION_DO_NOT_UPDATE_BYTE_OFFSET). In such a case FltWriteFile
failed with the specified error i.e. Status_Not_Implemented. Now I am
setting this parameter to Zero and not setting any flags, and this works
fine.

However, I do not know as to why this specifying of the flags should
fail. I am certainly missing something here.

Best regards,

Ruhina


From: ruhina [mailto:xxxxx@persistent.co.in]
Sent: Monday, May 01, 2006 7:52 PM
To: ‘Windows File Systems Devs Interest List’
Subject: FltWriteFile during IRP_MJ_SET_INFORMATION

Hi,

Some editors during their save operation, create one temporary file and
finally rename this temporary file to the original file (e.g. Test.txt saved
in MSVC13.tmp and MSVC13.tmp renamed back to Test.txt). I am maintaining a
header in the original file (the header is dynamic unique to each original
file.). When the temp file is created there is no association between it and
the original file which is as expected at the mini filter level. The
association is noticed by the mini filter during the rename operation. Thus,
during the rename operation I try to insert the header in the original file
into the temporary file (I have cached the header of the original file.).

I have used the FltWriteFile function to insert the header which fails
with error -1073741822 (I am doing this in pre-callback routine). Is this
approach incorrect? If this is not possible then there are seemingly no
further operations where I can insert the original header.

Thanks and Regards,

Ruhina.