Re: IRP Create
- From: soviet_bloke@xxxxxxxxxxx
- Date: 1 Dec 2006 06:22:16 -0800
The I/O Manager knows from the very beginning what it is up to when it
issues the appropriate commands for a specific file operation.
What makes you believe so????
IO Manager issues requests to FS driver in response to native API calls
that are made by the client code, so that IRP_MJ_CREATE is the result
of ZwCreateFile() call, and IRP SET_INFORMATION is result of
ZwSetInformationFile()call. How is IO Manager supposed to know which
particular function the client code is about to call next while it
processes ZwCreateFile() call???
Now my question: Is there a way to find the kind of operation that is going
to be performed (eg read, write, rename) when an IRP Create operation is
issued?
Hopefully, by now you already understand that the question in itself is
just illogical
Anton Bassov
Beat Muller wrote:
About a month ago I asked how to correctly terminate an IRP Create
operation. Thank you very much for your replies, Don Burn and Maxim
Shatskih! So far they didn't help me a great deal, BUT please read on!
Your remark, Don Burn, that files can be renamed made me pondering a lot and
for quite a while in our app I didn't come across a situation where that
could happen until I found that download managers indeed do rename files
when downloading is finished. Renaming starts with an IRP Create operation
but so far I have to wait for an IRP SET_INFORMATION operation in order to
find out whether a rename op is taking place or not. My app works perfectly
that way but I'm not so happy with my code.
The I/O Manager knows from the very beginning what it is up to when it
issues the appropriate commands for a specific file operation.
Now my question: Is there a way to find the kind of operation that is going
to be performed (eg read, write, rename) when an IRP Create operation is
issued?
I didn't find a hint in Walter Oney's Driver book.
Any suggestions would be highly appreciated.
Michael Keller
.
- Follow-Ups:
- Re: IRP Create
- From: Beat Muller
- Re: IRP Create
- From: Don Burn
- Re: IRP Create
- References:
- IRP Create
- From: Beat Muller
- IRP Create
- Prev by Date: Re: Win32 Printer Drivers on a Win64 box
- Next by Date: Re: IRP Create
- Previous by thread: IRP Create
- Next by thread: Re: IRP Create
- Index(es):
Relevant Pages
|