There have been samples around of rolling your own IRP. However, I haven’t seen any that mix IoBuildDeviceIoControlRequest() with a read request to a file (with file name, not just the device). Is there a special reason for this, or would it be legit to use IoBuildDeviceIoControlRequest() for creation (and allocation) of the IRP and modify it afterwards. Does the I/O manager still free the IRP after completion by the lower driver?
Also a related question: IoGetRelatedDeviceObject() returns the filter driver which is the uppermost, right?!
Thanks,
Oliver
May the source be with you, stranger 
ICQ: #281645
URL: http://assarbad.info | http://windirstat.info | http://blog.assarbad.info
Oliver,
Why don’t you use IoBuildAsynchronousFsdRequest or
IoBuildSynchronousFsdRequest for this case, that is what these calls are
for.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
“Oliver Schneider” wrote in message
news:xxxxx@ntfsd…
> There have been samples around of rolling your own IRP. However, I
> haven’t seen any that mix IoBuildDeviceIoControlRequest() with a read
> request to a file (with file name, not just the device). Is there a
> special reason for this, or would it be legit to use
> IoBuildDeviceIoControlRequest() for creation (and allocation) of the IRP
> and modify it afterwards. Does the I/O manager still free the IRP after
> completion by the lower driver?
>
> Also a related question: IoGetRelatedDeviceObject() returns the filter
> driver which is the uppermost, right?!
>
> Thanks,
>
> Oliver
> –
> ---------------------------------------------------
> May the source be with you, stranger 
>
> ICQ: #281645
> URL: http://assarbad.info | http://windirstat.info |
> http://blog.assarbad.info
>
>
Don,
thanks for your reply.
Why don’t you use IoBuildAsynchronousFsdRequest or
IoBuildSynchronousFsdRequest for this case, that is what these calls are
for.
I am aware of this function as well but it does not change my question too much. Is it legit to modify such an IRP after it was created by the function?
Thanks,
Oliver
May the source be with you, stranger 
ICQ: #281645
URL: http://assarbad.info | http://windirstat.info | http://blog.assarbad.info
Sure an IRP is an IRP is an IRP. The headache is filling in all the fields
correctly for a given request type. You can do it, just be careful to set
up the fields and the IRP flags.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
“Oliver Schneider” wrote in message
news:xxxxx@ntfsd…
> Don,
>
> thanks for your reply.
>
>> Why don’t you use IoBuildAsynchronousFsdRequest or
>> IoBuildSynchronousFsdRequest for this case, that is what these calls are
>> for.
> I am aware of this function as well but it does not change my question
> too much. Is it legit to modify such an IRP after it was created by the
> function?
>
> Thanks,
>
> Oliver
> –
> ---------------------------------------------------
> May the source be with you, stranger 
>
> ICQ: #281645
> URL: http://assarbad.info | http://windirstat.info |
> http://blog.assarbad.info
>
>
Don,
thanks!
Oliver
-------- Original-Nachricht --------
Datum: Sat, 25 Nov 2006 17:39:39 -0500
Von: “Don Burn”
An: “Windows File Systems Devs Interest List”
Betreff: Re:[ntfsd] Re:Rolling my own IRP to replace ZwReadFile()
> Sure an IRP is an IRP is an IRP. The headache is filling in all the
> fields
> correctly for a given request type. You can do it, just be careful to set
> up the fields and the IRP flags.
>
>
> –
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> http://www.windrvr.com
> Remove StopSpam from the email to reply
>
>
>
> “Oliver Schneider” wrote in message
> news:xxxxx@ntfsd…
> > Don,
> >
> > thanks for your reply.
> >
> >> Why don’t you use IoBuildAsynchronousFsdRequest or
> >> IoBuildSynchronousFsdRequest for this case, that is what these calls
> are
> >> for.
> > I am aware of this function as well but it does not change my question
> > too much. Is it legit to modify such an IRP after it was created by the
> > function?
> >
> > Thanks,
> >
> > Oliver
> > –
> > ---------------------------------------------------
> > May the source be with you, stranger 
> >
> > ICQ: #281645
> > URL: http://assarbad.info | http://windirstat.info |
> > http://blog.assarbad.info
> >
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmxpro.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
–
---------------------------------------------------
May the source be with you, stranger 
ICQ: #281645
URL: http://assarbad.info | http://windirstat.info | http://blog.assarbad.info