Open file from minifilter during the instance_setup

138 Views Asked by At

I am new in minifilter development and I am wondering if I can read some information from a xml/txt file in the instance_setup function. The idea is to pass information to the minifilter from a config file at startup.

fopen() is not working because my minifilter does not allow me to import this function. The compiler of my Visual Studio raises unresolved external symbol.

Is it not possible to open files from a minifilter? Am I missing something?

1

There are 1 best solutions below

2
Zeltrax On BEST ANSWER

You may need to use FltCreateFile/FltReadFile or ZwCreateFile/ZwReadFile