Data->IoStatus.Status = STATUS_ACCESS_DENIED;
Data->IoStatus.Information = 0;
return FLT_PREOP_COMPLETE;
Unfortunately, as stated in the comment to WDK scanner minifilter sample,
"The effect of getting ERROR_ACCESS_DENIED for many apps to delete the file
they are trying to write usually". For instance, the file opened in the Far
manager internal editor will be deleted after an attempt to save changes if
the minifilter returns STATUS_ACCESS_DENIED.
Is there any way to prevent write access without deleting the file?
Thanks, Eugene
Surely, fail create with write bits in DesiredAccess, do not fail writes.
--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com
Thanks, Maxim!
It works well.
Eugene