In my filesystem filter driver for Windows NT/2K, I watched values of
desiredAccess and CreateOptions in IRP_MJ_CREATE routins, listed below.
I want to copy file to a special directory before it would be written, so I
must distinct the access mode is only or writeable. My question is: How can
I distinct which access mode is readonly or writeable, I found it is very
trouble, nearly every access mode is writeable, even through, read file
attributes(click right button in Explorer, and select attributes).
your answer will be great appreciated!
the two values:
currentIrpStack->Parameters.Create.Options
currentIrpStack->Parameters.Create.SecurityContext->DesiredAccess
best regards
zhiwei
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
At last a question I think I can help with 
In the Completion routine check the irpsp->Fileobject->WriteAccess,
irpsp->Fileobject->ReadAccess, irpsp->Fileobject->SharedWrite and
irpsp->Fileobject->SharedRead. This should tell you what it was opened with.
TTFN
Paul Delivett
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of leezhiwei@263.net
Sent: 19 September 2001 19:00
To: File Systems Developers
Subject: [ntfsd] DesiredAccess and OpenOptions when Open/Create file?
In my filesystem filter driver for Windows NT/2K, I watched values of
desiredAccess and CreateOptions in IRP_MJ_CREATE routins, listed below.
I want to copy file to a special directory before it would be written, so I
must distinct the access mode is only or writeable. My question is: How can
I distinct which access mode is readonly or writeable, I found it is very
trouble, nearly every access mode is writeable, even through, read file
attributes(click right button in Explorer, and select attributes).
your answer will be great appreciated!
the two values:
currentIrpStack->Parameters.Create.Options
currentIrpStack->Parameters.Create.SecurityContext->DesiredAccess
best regards
zhiwei
You are currently subscribed to ntfsd as: xxxxx@Carraig.co.uk
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
THX! Your answer is very valuable!
I think in IRP_MJ_CREATE completion routine the file is already opened.
Can I copy a file to overrite it, it have been taken up by some process?
Because I want to update contents of the file.
best regards
leezhiwei
----- Original Message -----
From: “Paul Delivett”
To: “File Systems Developers”
Sent: Thursday, September 20, 2001 9:13 PM
Subject: [ntfsd] RE: DesiredAccess and OpenOptions when Open/Create file?
> At last a question I think I can help with 
>
> In the Completion routine check the irpsp->Fileobject->WriteAccess,
> irpsp->Fileobject->ReadAccess, irpsp->Fileobject->SharedWrite and
> irpsp->Fileobject->SharedRead. This should tell you what it was opened with.
>
> TTFN
> Paul Delivett
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of leezhiwei@263.net
> Sent: 19 September 2001 19:00
> To: File Systems Developers
> Subject: [ntfsd] DesiredAccess and OpenOptions when Open/Create file?
>
>
> In my filesystem filter driver for Windows NT/2K, I watched values of
> desiredAccess and CreateOptions in IRP_MJ_CREATE routins, listed below.
> I want to copy file to a special directory before it would be written, so I
> must distinct the access mode is only or writeable. My question is: How can
> I distinct which access mode is readonly or writeable, I found it is very
> trouble, nearly every access mode is writeable, even through, read file
> attributes(click right button in Explorer, and select attributes).
>
> your answer will be great appreciated!
>
> the two values:
> currentIrpStack->Parameters.Create.Options
> currentIrpStack->Parameters.Create.SecurityContext->DesiredAccess
>
> best regards
> zhiwei
>
> —
> You are currently subscribed to ntfsd as: xxxxx@Carraig.co.uk
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: leezhiwei@263.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
???y˫???+.n?+???~?Z?˛??^r*D???kN???r??zǧu??jy???^j??? 0?j?b??(??(