Hi I got no response from here.

Hi to all

I guess my doubt i posted here couple of days back was missed by
all(specially LALIT)

I repeat my problem again

1 How to trap file or folder delete and figure out if file or folder has
been requested for deletion (is there any differnce in handling of file or
folder deletion)?

2 Instead of deleting file/folder i need to hide them.User is not be
given any message of NO_ACCESS. The user has the illusion that the file or
folder is deleted and is recovered on reboot.(is there any differnce in
handling of file or folder hiding)? HOW TO HIDE FILE/FOLDER ??

Any tip with a sample code will be a great help to me as i am new to this
subject and i have do this job ASAP.

thanks

Vishal

Active file system filters are the most difficult to write. You want us to
give you something we worked months to develop? You want someone to steal
his employer’s property? Try playing the lottery, your odds are much
better. Have your employer hire someone who knows how to do the job.

“vishal” wrote in message news:xxxxx@ntfsd…
>
> Hi to all
>
> I guess my doubt i posted here couple of days back was missed by
> all(specially LALIT)
>
> I repeat my problem again
>
>
> 1 How to trap file or folder delete and figure out if file or folder has
> been requested for deletion (is there any differnce in handling of file or
> folder deletion)?
>
> 2 Instead of deleting file/folder i need to hide them.User is not be
> given any message of NO_ACCESS. The user has the illusion that the file or
> folder is deleted and is recovered on reboot.(is there any differnce in
> handling of file or folder hiding)? HOW TO HIDE FILE/FOLDER ??
>
>
> Any tip with a sample code will be a great help to me as i am new to this
> subject and i have do this job ASAP.
>
> thanks
>
> Vishal
>
>

>> was missed by all(specially LALIT)

No it wasnt. All ppl contribute here from free will. They might respond, or
they might choose to ignore a question because: too much to explain, the
question is redundant and was already answered , they are bussy and dont
have time to respond, they dont have any mood to respond to a question, its
too boring to respond to the question, their favorite pet just had a heart
attack, they are gone, doing extremly important business about other list
members dont want to know, but still they set their email systems to respond
with annoying “Im gone, saving the galaxy or some unknown princess , I will
be back in 2 August, if you need me urgently, dont call me !”, are too
bussy because they compose annoying “disclaimers” about how important is
their IP and youll rot in jail if you read their precious mails by mistake
and so on…

Usually , there is no need for a repost. People read the mails and answer if
they see it apropiate.

As for your answer, search this list. Not once here was explained WHEN and
HOW a file is dleted , and how to hide a file or folder … my my , this was
so asked 100000001 times. If you understand filemon, and Nagar’s sample ,
you should be able to figure the rest out, but you will need the IFS kit to
write a proper driver.

From:To: “File Systems Developers”
Sent: Friday, June 20, 2003 7:47 PM
Subject: [ntfsd] Hi I got no response from here.

> Hi to all
>
> I guess my doubt i posted here couple of days back was missed by
> all(specially LALIT)
>
> I repeat my problem again
>
>
> 1 How to trap file or folder delete and figure out if file or folder has
> been requested for deletion (is there any differnce in handling of file or
> folder deletion)?
>
> 2 Instead of deleting file/folder i need to hide them.User is not be
> given any message of NO_ACCESS. The user has the illusion that the file or
> folder is deleted and is recovered on reboot.(is there any differnce in
> handling of file or folder hiding)? HOW TO HIDE FILE/FOLDER ??
>
>
> Any tip with a sample code will be a great help to me as i am new to this
> subject and i have do this job ASAP.
>
> thanks
>
> Vishal
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

This is actually an excellent group for support. There are many people with
varied experiences and most are very willing to share those experiences.

However, I know that most of us do not appreciate it when people come and
ask questions for which we’ve built up a storehouse of knowledge (the
archives of this list). Speaking for myself, this is because it indicates a
lack of respect for our time and expertise. It is one thing to come asking
a complex question for which the answer is not readily apparent, and it is
another to come and ask a fundamental question that is available in the
history of this group, within the FAQ, or within the IFS Kit documentation.

I know that I have answered this question numerous times over the years.
For the sake of courtesy, I will answer it once again, but I shall refrain
from answering additional questions when the answer is easily available and
the questioner has not even had the courtesy to attempt to find it before
asking.

A file or directory is deleted when a deletion request is pending and the
last user reference to the file is released (that is, the last
IRP_MJ_CLEANUP is sent to the file system).

Deletion is requested on a file or directory in one of two ways:

  • When the file/directory is opened, FILE_DELETE_ON_CLOSE is set. The exact
    semantics of this are complicated because the file systems explicitly check
    for this, explicitly add DELETE access to the access required (even if not
    requested originally) and must deal with issues regarding directories (a
    directory must be empty before it can be marked delete pending).

  • For an already opened file/directory, the IRP_MJ_SET_INFORMATION,
    specifying FileDispositionInformation and then providing the
    FILE_DISPOSITION_INFORMATION structure indicating TRUE for the DeleteFile
    field.

In these cases the file is now scheduled for deletion, but that can be
changed by a subsequent call to modify the file disposition (indicating
FALSE for the DeleteFile field.)

Note that the EXACT semantics are file system specific. Do not be surprised
if you see some differences in the seven general purpose file systems
currently available from Microsoft. For example, CDFS and UDFS currently do
not allow you to delete files (note the term “currently” - were Microsoft to
provide a read/write UDF file system, then I suspect these semantics would
change.) NFS semantics are very different than CIFS semantics for deletion,
and I must admit I am not certain about the semantics of the Netware
redirector’s file deletion semantics.

In order to assist in the future, I have placed this write up on the OSR
Online site.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: vishal [mailto:xxxxx@yahoo.co.in]
Sent: Friday, June 20, 2003 12:47 PM
To: File Systems Developers
Subject: [ntfsd] Hi I got no response from here.

Hi to all

I guess my doubt i posted here couple of days back was missed by
all(specially LALIT)

I repeat my problem again

1 How to trap file or folder delete and figure out if file or folder has
been requested for deletion (is there any differnce in handling of file or
folder deletion)?

2 Instead of deleting file/folder i need to hide them.User is not be
given any message of NO_ACCESS. The user has the illusion that the file or
folder is deleted and is recovered on reboot.(is there any differnce in
handling of file or folder hiding)? HOW TO HIDE FILE/FOLDER ??

Any tip with a sample code will be a great help to me as i am new to this
subject and i have do this job ASAP.

thanks

Vishal


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

I suspect that it is such a broad question that no one is going to
answer. You might as well have asked us to write the darn thing for you.

What you wan to do is simple. A little homework should point you in the
right direction.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of vishal
Sent: Friday, June 20, 2003 9:47 AM
To: File Systems Developers
Subject: [ntfsd] Hi I got no response from here.

Hi to all

I guess my doubt i posted here couple of days back was missed by
all(specially LALIT)

I repeat my problem again

1 How to trap file or folder delete and figure out if file or folder has
been requested for deletion (is there any differnce in handling of file
or
folder deletion)?

2 Instead of deleting file/folder i need to hide them.User is not be
given any message of NO_ACCESS. The user has the illusion that the file
or
folder is deleted and is recovered on reboot.(is there any differnce in
handling of file or folder hiding)? HOW TO HIDE FILE/FOLDER ??

Any tip with a sample code will be a great help to me as i am new to
this
subject and i have do this job ASAP.

thanks

Vishal


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

Hi Vishal,
I must tell you that this is an excellent group of helping people. This is
the only place which comes to help when I am helpless. You told me that I
had posted similar questions, you should have seen the answers too. I
think if you had done that, there was no need of further posting.
I assume, I had given you appropriate direction by telling about the
IRP’s where you can get the solution.
Read the queries posted earlier you will get hell lot of relevant
information.
Regards,
Lalit.