Hide Files and foilder,,,,, rename and delete

Hello,

I want to learn how can I hide a file or folder to OS, for example I
need that command dir not list my files and folder, but not using the
hidden atribute… I want hide of all…

Can I intercep some IRP or something that manage FindFirst and FindNext?

The other question if how can I denied delete and permit rename and
viceversa, under NTFS? is posible?

Thanks guys

Moises


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Message
Directory information is obtained through the
IRP_MJ_DIRECTORY_CONTROL/IRP_MN_QUERY_DIRECTORY entry point. If you are an
FSD, then just don’t add the entries to the buffer returned. If you are a
filter, grab the directory information buffer in a completion routine and
mess it up there.

For deletion and rename processing, look at the IRP_MJ_SET_INFORMATION with
an information class of FileDispositionInformation and FileRenameInformation
respectively.

Pete
Peter Scott
xxxxx@KernelDrivers.com
http://www.KernelDrivers.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Moises Herrera Vazquez
Sent: Thursday, October 04, 2001 10:14 AM
To: File Systems Developers
Subject: [ntfsd] Hide Files and foilder, rename and delete

Hello,

I want to learn how can I hide a file or folder to OS, for example I need
that command dir not list my files and folder, but not using the hidden
atribute… I want hide of all…

Can I intercep some IRP or something that manage FindFirst and FindNext?

The other question if how can I denied delete and permit rename and
viceversa, under NTFS? is posible?

Thanks guys

Moises

You are currently subscribed to ntfsd as: xxxxx@home.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

MessageIRP_MJ_DIRECTORY_CONTROL/IRP_MN_QUERY_DIRECTORY

Filter the data in the IRP’s buffer and decrement Irp->IoStatus.Information.
Also handle the situation when you filter out ALL of the data.

Max

----- Original Message -----
From: Moises Herrera Vazquez
To: File Systems Developers
Sent: Thursday, October 04, 2001 8:14 PM
Subject: [ntfsd] Hide Files and foilder, rename and delete

Hello,

I want to learn how can I hide a file or folder to OS, for example I need that command dir not list my files and folder, but not using the hidden atribute… I want hide of all…

Can I intercep some IRP or something that manage FindFirst and FindNext?

The other question if how can I denied delete and permit rename and viceversa, under NTFS? is posible?

Thanks guys

Moises

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com