From Microsoft: A minifilter driver calls FltQueryInformationFile to retrieve information for a given file. The file must currently be open.
FltQueryInformationFile returns zero in any member of a FILE_XXX_INFORMATION structure that is not supported by a particular file system.
Callers of FltQueryInformationFile must be running at IRQL = PASSIVE_LEVEL and with APCs enabled.
Note Before calling this routine, call IoGetTopLevelIrp. If IoGetTopLevelIrp returns a non-NULL value, do not call the routine as this can cause a system deadlock.