I try to use Nagar’s SFilter sample as a start for my file filter,but I
have some problems(I have Softice running if this info helps you):
-
The driver doesnt want to load at boot time but it loads at system time
(what’s so special with boot time loading devices?I see that NTice.sys from
Softice loads ok.) -
After I load my checked driver at system time when I open files I dont
receive all DbgPrints from my dispatch routine or from SFilterCreate
(IRP_MJ_CREATE) . Why? I know that for any file activity I should receive
at least one IRP(e.g. I open a txt file from my desktop and I receive no
message in my debugger) -
Could I get a handle from Ring3 (with CreateFile) of my system time
loaded device for future sending of messages with DeviceIoControl ?I try to
do this :
hndFile = CreateFile(
“\\.\SFilter”,
GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,
0,NULL);
but I receive hndFile=INVALID_HANDLE