Hi All,
Post routines (Completion Routines) in Mini Filter Driver can be called at Dispatch Level. But i want to perform some of the operations at PASSIVE_LEVEL only. To perform these operation i am using the critical Queues and returning MORE_PROCESSING_REQUIRED from Post operations.
I need to use some of the parameters passed to me in the post operations. and I have some questions regarding the parameters PFLT_CALLBACK_DATA and PCFLT_RELATED_OBJECTS.
-
Will FLT_CALLBACK_DATA be valid by the time worker thread will be called? I am passing this pointer to the worker thread using the context? As i am returning MORE_PROCESSING_REQUIRED from the Post routine, IRP is not yet complete yet. So can i assume that PFLT_CALLBACK_DATA will be valid in worker thread? Or i shall allocate my own memory and pass on the required data.
-
TargetFileObject and TargetInstance in IO Parameter block of FLT_CALLBACK_DATA are ALWAYS same as FileObject and Instance in the FLT_RELATED_OBJECTS? From the documentation its not clear.
thanks in advance