Hello,
My filter driver always receives multiple IRP_MJ_CREATEs when I click a
folder or file on Explorer view. We are only interested in double-click
actions that open files for reading or editing. If a file is archived to
tape, we need bring it back when the file needs be operated. But we don’t
want to bring it back when Explorer inquires some attributes such as size
and modified date. If you know any open flag can be used to distinguish the
activities, please share the knowledge with us. You would be greatly
appreciated.
Regards,
Shangwu
Excuse me if this seems silly… But why not just ‘bring it back’ on a
read instead of the open?
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: 07 April 2005 14:10
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is it possible to distinguish double-click and click on
Explorer?
Hello,
My filter driver always receives multiple IRP_MJ_CREATEs when I click a
folder or file on Explorer view. We are only interested in double-click
actions that open files for reading or editing. If a file is archived to
tape, we need bring it back when the file needs be operated. But we
don’t
want to bring it back when Explorer inquires some attributes such as
size
and modified date. If you know any open flag can be used to distinguish
the
activities, please share the knowledge with us. You would be greatly
appreciated.
Regards,
Shangwu
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
Try the DesiredAccess bitmask.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Shangwu”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Thursday, April 07, 2005 5:09 PM
Subject: [ntfsd] Is it possible to distinguish double-click and click on
Explorer?
> Hello,
>
> My filter driver always receives multiple IRP_MJ_CREATEs when I click a
> folder or file on Explorer view. We are only interested in double-click
> actions that open files for reading or editing. If a file is archived to
> tape, we need bring it back when the file needs be operated. But we don’t
> want to bring it back when Explorer inquires some attributes such as size
> and modified date. If you know any open flag can be used to distinguish the
> activities, please share the knowledge with us. You would be greatly
> appreciated.
>
> Regards,
> Shangwu
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Thank you Rob for replying. We want to copy the whole file including
attributes to overwrite the tag file when it is accessed. If we overwrite it
on MJ_READ request, the tag file is already opened. It could be failed when
to overwrite an opened file.
Regards,
Shangwu
“Rob Linegar” wrote in message news:xxxxx@ntfsd…
Excuse me if this seems silly… But why not just ‘bring it back’ on a
read instead of the open?
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: 07 April 2005 14:10
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is it possible to distinguish double-click and click on
Explorer?
Hello,
My filter driver always receives multiple IRP_MJ_CREATEs when I click a
folder or file on Explorer view. We are only interested in double-click
actions that open files for reading or editing. If a file is archived to
tape, we need bring it back when the file needs be operated. But we
don’t
want to bring it back when Explorer inquires some attributes such as
size
and modified date. If you know any open flag can be used to distinguish
the
activities, please share the knowledge with us. You would be greatly
appreciated.
Regards,
Shangwu
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
Clicking and double-clicking have relatively little meaning for the file system. Trying to correlate file system activity to explorer activity is a highly frustrating endeaver. You will find that the file system will see a substantial amount of activity even before a user ‘clicks’ on an object. Opening a parent folder will start a process of opening and reading children (for icon information). Moving the mouse over an object will also trigger open/read cycles so explorer can ‘pop-up’ file information. And the list goes on…
good luck,
John
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shangwu
Sent: Thursday, April 07, 2005 8:22 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Is it possible to distinguish double-click and click
on Explorer?
Thank you Rob for replying. We want to copy the whole file including
attributes to overwrite the tag file when it is accessed. If we overwrite it
on MJ_READ request, the tag file is already opened. It could be failed when
to overwrite an opened file.
Regards,
Shangwu
“Rob Linegar” wrote in message news:xxxxx@ntfsd…
Excuse me if this seems silly… But why not just ‘bring it back’ on a
read instead of the open?
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: 07 April 2005 14:10
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is it possible to distinguish double-click and click on
Explorer?
Hello,
My filter driver always receives multiple IRP_MJ_CREATEs when I click a
folder or file on Explorer view. We are only interested in double-click
actions that open files for reading or editing. If a file is archived to
tape, we need bring it back when the file needs be operated. But we
don’t
want to bring it back when Explorer inquires some attributes such as
size
and modified date. If you know any open flag can be used to distinguish
the
activities, please share the knowledge with us. You would be greatly
appreciated.
Regards,
Shangwu
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@timespring.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thank you Maxim for the hint. I found that DesiredAccess is always 0x100080
when a folder is clicked. When file is clicked, two types of DesiredAccess
are 0x100080 and 0x120089. So I can at least avoid to recall all files by
checking 0x100080 when a folder is clicked.
Regards,
Shangwu
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntfsd…
> Try the DesiredAccess bitmask.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Shangwu”
> Newsgroups: ntfsd
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, April 07, 2005 5:09 PM
> Subject: [ntfsd] Is it possible to distinguish double-click and click on
> Explorer?
>
>
>> Hello,
>>
>> My filter driver always receives multiple IRP_MJ_CREATEs when I click a
>> folder or file on Explorer view. We are only interested in double-click
>> actions that open files for reading or editing. If a file is archived to
>> tape, we need bring it back when the file needs be operated. But we don’t
>> want to bring it back when Explorer inquires some attributes such as size
>> and modified date. If you know any open flag can be used to distinguish
>> the
>> activities, please share the knowledge with us. You would be greatly
>> appreciated.
>>
>> Regards,
>> Shangwu
>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
Rob is correct; you should recall the file on READ not open. There is
no way to tell if a “double-click” was used to open the file.
You should not have an issue replacing the file while processing a read
because you have a valid file object you should be able to restore the
state with, you don’t need to open it again.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: Thursday, April 07, 2005 7:22 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Is it possible to distinguish double-click and click
on Explorer?
Thank you Rob for replying. We want to copy the whole file including
attributes to overwrite the tag file when it is accessed. If we
overwrite it
on MJ_READ request, the tag file is already opened. It could be failed
when
to overwrite an opened file.
Regards,
Shangwu
“Rob Linegar” wrote in message news:xxxxx@ntfsd…
Excuse me if this seems silly… But why not just ‘bring it back’ on a
read instead of the open?
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: 07 April 2005 14:10
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is it possible to distinguish double-click and click on
Explorer?
Hello,
My filter driver always receives multiple IRP_MJ_CREATEs when I click a
folder or file on Explorer view. We are only interested in double-click
actions that open files for reading or editing. If a file is archived to
tape, we need bring it back when the file needs be operated. But we
don’t
want to bring it back when Explorer inquires some attributes such as
size
and modified date. If you know any open flag can be used to distinguish
the
activities, please share the knowledge with us. You would be greatly
appreciated.
Regards,
Shangwu
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hi Neal,
Thank you for indicating the direction. I am still not clear about the
mechanism. After a file is successfully opened by one process, my filter can
trace its READ request. When the next READ comes, the filter tells the user
mode service to restore the file from tape. Can the user mode service still
call CopyFile(source, target, TRUE) even though the target file is already
opened by another process?
Regards,
Shangwu
“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
Rob is correct; you should recall the file on READ not open. There is
no way to tell if a “double-click” was used to open the file.
You should not have an issue replacing the file while processing a read
because you have a valid file object you should be able to restore the
state with, you don’t need to open it again.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: Thursday, April 07, 2005 7:22 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Is it possible to distinguish double-click and click
on Explorer?
Thank you Rob for replying. We want to copy the whole file including
attributes to overwrite the tag file when it is accessed. If we
overwrite it
on MJ_READ request, the tag file is already opened. It could be failed
when
to overwrite an opened file.
Regards,
Shangwu
“Rob Linegar” wrote in message news:xxxxx@ntfsd…
Excuse me if this seems silly… But why not just ‘bring it back’ on a
read instead of the open?
BR,
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: 07 April 2005 14:10
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is it possible to distinguish double-click and click on
Explorer?
Hello,
My filter driver always receives multiple IRP_MJ_CREATEs when I click a
folder or file on Explorer view. We are only interested in double-click
actions that open files for reading or editing. If a file is archived to
tape, we need bring it back when the file needs be operated. But we
don’t
want to bring it back when Explorer inquires some attributes such as
size
and modified date. If you know any open flag can be used to distinguish
the
activities, please share the knowledge with us. You would be greatly
appreciated.
Regards,
Shangwu
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com