IoFreeIrp passing IRP from TdiBuildInternalDeviceControlIrp

Hi all,

I’m looking for something clear about this at DDK documentation, but I
can’t find.
Is not necessary call IoFreeIrp to free an IRP allocated with
TdiBuildInternalDeviceControlIrp?

With part of Kernel do this?

Thanks in advance,
Fernando Roberto da Silva.

>Is not necessary call IoFreeIrp to free an IRP allocated with

TdiBuildInternalDeviceControlIrp?

No. TdiBuildInternalDeviceControlIrp is a wrapper around
IoBuildDeviceIoControlRequest, which creates the threaded IRP.

Threaded IRPs have the special rules of completion. You must not call IoFreeIrp
for them, the OS will.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com