How to cancel Delete request in my Win2K file system filter driver?

Hi,

My file system filter driver will determine if a file can be deleted,
I wrote the following code in my dispatch routine to implement this:

// …

if(CanNotBeDeleted)
{
Irp->IoStatus.Status = STATUS_ACCESS_DENIED;
Irp->IoStatus.Information = 0;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_ACCESS_DENIED;
}

// …

The goal of deletion prevention is achieved, but when I try to open the
protected file, the system says something like “This file is currently
opened by some other process” and fails to open it.

Thanks for any suggestions!

Chen

“Chen” wrote in message news:xxxxx@ntdev…
>
> Hi,
>
> My file system filter driver will determine if a file can be deleted,
>

Please take this request to the NTFSD list, which specializes in file
systems. There are plenty of experts there who will be more than happy to
answer your question.

Peter
OSR