Expand Minimize

IoSizeOfIrp routine

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

Syntax


USHORT IoSizeOfIrp(
  _In_  CCHAR StackSize
);

Parameters

StackSize [in]

Specifies the number of stack locations for the IRP.

Return value

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

Remarks

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

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

IRQL

Any level

See also

IoAllocateIrp
IoMakeAssociatedIrp

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft