More questions on IoBuildSynchronousFsdRequest()

Hello,

PIRP Irp = IoBuildSynchronousFsdRequest(…)

In case I did call IoCallDriver() then the I/O manager will free the Irp
when it is completed right and otherwise I call IoFreeIrp()?

Can I use the IoBuildSynchronousFsdRequest() and put any other MJ code that
is not in the documentation of this call?
Can’t I pass say IRP_MJ_FLUSH and adjust the IRP’s stack location parameters
to another MJ code?
Or better IoAllocateIrp()
Regards,
Elias

http://support.microsoft.com/default.aspx?scid=kb;EN-US;320275

http://support.microsoft.com/default.aspx?scid=kb;EN-US;326315

-Eliyas
This posting is provided “AS IS” with no warranties, and confers no rights.

“lallous” wrote in message news:xxxxx@ntdev…
>
> Hello,
>
> PIRP Irp = IoBuildSynchronousFsdRequest(…)
>
> In case I did call IoCallDriver() then the I/O manager will free the Irp
> when it is completed right and otherwise I call IoFreeIrp()?
>
> Can I use the IoBuildSynchronousFsdRequest() and put any other MJ code
that
> is not in the documentation of this call?
> Can’t I pass say IRP_MJ_FLUSH and adjust the IRP’s stack location
parameters
> to another MJ code?
> Or better IoAllocateIrp()
> Regards,
> Elias
>
>
>
>