Note
For optimal reliability and performance, use file system minifilter drivers with Filter Manager support instead of legacy file system filter drivers. To port your legacy driver to a minifilter driver, see Guidelines for Porting Legacy Filter Drivers.
After registering IRP and fast I/O dispatch routines, your file system filter driver's DriverEntry routine can initialize other global driver variables and data structures as needed.