When I go to FltWriteFile during Pre or Post in Minifilter, it will cause me to continuously enter the SetFileImformation callback routine

Hello,All!
be like Title,why this?thanks!

 case FileEndOfFileInformation:
        {
            PFILE_END_OF_FILE_INFORMATION pFileEndInfo = Data->Iopb->Parameters.SetFileInformation.InfoBuffer;

            WriteCiphertextToFile(FltObjects, pFileStreamContex->uVolumeSectorSize, pFileEndInfo->EndOfFile.QuadPart, pFileEndInfo->EndOfFile.QuadPart, pFileStreamContex->pwchFileName);


            //pFileEndInfo->EndOfFile.QuadPart = pFileEndInfo->EndOfFile.QuadPart + uFileSecInfoSize;

            //FltSetCallbackDataDirty(Data);

            break;
        }

It is reasonably likely that the code is not passing the correct filter instance to FltWriteFile. Or maybe it is not using FltWriteFile?

Hard to tell with the code provided.

thanks! Alnoor.I had changed a way to solve the problem

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.