IRP Create



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


.



Relevant Pages

  • Re: IRP Create
    ... a bunch of writes, then doing a rename operation, then do other operations. ... 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 ... to be performed when an IRP Create operation is ...
    (microsoft.public.development.device.drivers)
  • Re: Newbie Question: _KTHREAD undeclared identifier
    ... that works - and ironically that's the only IRP I'm listening for. ... from getting hold of that exact structure in its complete form. ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: problems with DeviceIoControl
    ... >> they are just unique for the driver. ... In my dispatch procedure I just complet every IRP ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: help to handle IRP_MN_STOP_DEVICE and IRP_MN_START_DEVICE in Usb device?
    ... Vista WDK and look at the KMDF USB samples. ... Don Burn ... If I just pass Irp to Next device,I can't receive IRP_MN_START_DEVICE ...
    (microsoft.public.development.device.drivers)