Send to Recycled to real deletion

Hi all,

I am developing a file system filter driver and I have a problem.

When user press delete key without ctrl key pressed, a message saying that
the file will be send to recycled is showed. I don´t want this message in
some cases. I need change some file deletions to real file deletions.
Somebody know how can I do it ?

Thanks in advance,

Heldai

This decision is made by Explorer, not the filesystem, so you’d have to
see if Explorer/shell allows you to alter this behavior on a per-file
basis via a shell extension of some kind (a cursory examination of MSDN
came up blank). I know you can configure the recycle bin behavior to
cause immediate deletion of files on a per-drive basis in the Recycle
Bin properties.

  • Nicholas Ryan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@scuasecurity.com.br
Sent: Sunday, April 13, 2003 11:00 PM
To: File Systems Developers
Subject: [ntfsd] Send to Recycled to real deletion

Hi all,

I am developing a file system filter driver and I have a problem.

When user press delete key without ctrl key pressed, a
message saying that the file will be send to recycled is
showed. I don?t want this message in some cases. I need
change some file deletions to real file deletions. Somebody
know how can I do it ?

Thanks in advance,

Heldai


You are currently subscribed to ntfsd as: xxxxx@nryan.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Without intervention from shell hooks, you cannot let the user know the
file will be deleted instead of renamed.
Still, if you just want delete instead of rename, you can replace the
FileInformationClass, and the info buffer (make sure you replace it back after
the completion has finished) telling the FS to delete the file.

xxxxx@scuasecurity.com.br wrote:

Hi all,

I am developing a file system filter driver and I have a problem.

When user press delete key without ctrl key pressed, a message saying that
the file will be send to recycled is showed. I don´t want this message in
some cases. I need change some file deletions to real file deletions.
Somebody know how can I do it ?

Thanks in advance,

Heldai


You are currently subscribed to ntfsd as: xxxxx@alfasp.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.

Alfa File Monitor - File monitoring library for Win32 developers.

Thanks,

But some IRP_MJ_CREATE occour before windows show the deletion message.
Don´t is possible modify something on IRP to change Explorer decision ?

Thanks in advance,

Heldai

The only way for Explorer to delete instead of Rename is if the Recycle
Bin is over maximum allowed size - so you can try something in that
direction, but don’t get your hopes up.

But some IRP_MJ_CREATE occour before windows show the deletion message.
Don´t is possible modify something on IRP to change Explorer decision ?


Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.

Thanks for your help.

Heldai

By shell-level programming I think. Kernel mode programming is not
necessary here.

Max

----- Original Message -----
From:
To: “File Systems Developers”
Sent: Monday, April 14, 2003 10:00 AM
Subject: [ntfsd] Send to Recycled to real deletion

> Hi all,
>
> I am developing a file system filter driver and I have a problem.
>
> When user press delete key without ctrl key pressed, a message
saying that
> the file will be send to recycled is showed. I don´t want this
message in
> some cases. I need change some file deletions to real file
deletions.
> Somebody know how can I do it ?
>
> Thanks in advance,
>
> Heldai
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com