Previous Next

IoSizeOfIrp

The IoSizeOfIrp routine determines the size in bytes for an IRP, given the number of stack locations in the IRP.

USHORT 
  IoSizeOfIrp(
    IN CCHAR  StackSize
    );

Parameters

StackSize
Specifies the number of stack locations for the IRP.

Return Value

IoSizeOfIrp returns the size, in bytes, of the IRP.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

Callers of IoSizeOfIrp can be running at any IRQL.

The input StackSize value is either that of the next-lower driver’s device object or one more than that value.

See Also

IoAllocateIrp, IoMakeAssociatedIrp