Hi ,
In my mini-filter encryption driver, in PreCreate() function, after checking the required file extension (ex. .cpp or .java etc) , for such file i want Read/Write Access to be denied.
so , as soon as i get the required file extension , i have done :
if(MyFileExtension)
{
Data->IoStatus.Status = STATUS_ACCESS_DENIED;
Data->IoStatus.Information = 0;
return STATUS_ACCESS_DENIED;
}
but this leads to system crash. All other callback routines are commented and this is the only code that is written in precreate() fiunction.
Mahesh
Minifilters have a totally difference calling convention you need to return
FLT_PREOP_COMPLETE to indicate you are completing the request.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
wrote in message news:xxxxx@ntfsd…
> Hi ,
>
> In my mini-filter encryption driver, in PreCreate() function, after
> checking the required file extension (ex. .cpp or .java etc) , for such
> file i want Read/Write Access to be denied.
>
> so , as soon as i get the required file extension , i have done :
>
> if(MyFileExtension)
> {
> Data->IoStatus.Status = STATUS_ACCESS_DENIED;
> Data->IoStatus.Information = 0;
> return STATUS_ACCESS_DENIED;
> }
>
>
> but this leads to system crash. All other callback routines are commented
> and this is the only code that is written in precreate() fiunction.
>
> Mahesh
>