I'm writing an WDF bus driver which creates pdos and receives WDFREQUESTs
from the higher stack of the pdo.
In my WDM driver, the srb->Function is extracted from the irp, and the
requests are processed by filling the appropriate fields in the srb.

My question is:

Should I WdfRequestWdmGetIrp and process them using the old way,
or is there any new ways in the Framework?


Thanks
Aaron

Re: I/O Request processing by Doron

Doron
Wed Jan 04 01:30:07 CST 2006

KMDF does not understand SRBs, so you will have to do some more work then
normal. instead of getting the PIRP and then the current stack location,
just call WdfRequestGetParameters() and then use the values in either
Parameters.Others.Arg1/2/4 to get the SRB

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Aaron" <aaronli88@hotmail.com> wrote in message
news:ekkp44PEGHA.740@TK2MSFTNGP12.phx.gbl...
> I'm writing an WDF bus driver which creates pdos and receives WDFREQUESTs
> from the higher stack of the pdo.
> In my WDM driver, the srb->Function is extracted from the irp, and the
> requests are processed by filling the appropriate fields in the srb.
>
> My question is:
>
> Should I WdfRequestWdmGetIrp and process them using the old way,
> or is there any new ways in the Framework?
>
>
> Thanks
> Aaron
>



Re: I/O Request processing by Aaron

Aaron
Wed Jan 04 04:04:18 CST 2006

Got it!
Thanks a lot :)

Aaron


> KMDF does not understand SRBs, so you will have to do some more work then
> normal. instead of getting the PIRP and then the current stack location,
> just call WdfRequestGetParameters() and then use the values in either
> Parameters.Others.Arg1/2/4 to get the SRB
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
> "Aaron" <aaronli88@hotmail.com> wrote in message
> news:ekkp44PEGHA.740@TK2MSFTNGP12.phx.gbl...
>> I'm writing an WDF bus driver which creates pdos and receives WDFREQUESTs
>> from the higher stack of the pdo.
>> In my WDM driver, the srb->Function is extracted from the irp, and the
>> requests are processed by filling the appropriate fields in the srb.
>>
>> My question is:
>>
>> Should I WdfRequestWdmGetIrp and process them using the old way,
>> or is there any new ways in the Framework?
>>
>>
>> Thanks
>> Aaron
>>
>
>