Re: How to hide the directory?thx

Hi,

if you want to hide entries of a directory You can complete the IRP(minor
function IRP_MN_QUERY_DIRECTORY) as follows

Irp->IoStatus.Information = 0;

Irp->IoStatus.Status = STATUS_NO_MORE_FILES;

IoCompleteRequest( Irp, IO_NO_INCREMENT );

but if you want to hide the directory when its parent directory is queried,
then you need to manipulate the buffer in completion and remove the entry
that you want to hide and reduce the Irp->information field.

Thanks,

Kedar.

“znsoft” wrote in message news:…

> I use the method of modifying the Irp->IoStatus.Information to hidden

> file/directory,when the IRP_MN_QUERY_DIRECTORY returned only one entry,the

> Querybuffer->NextEntryOffset==0,so can’t hide the direcotry. Can anyone

> help me?

>

>

>