Export (0) Print
Expand All
Expand Minimize

IoGetNextIrpStackLocation routine

The IoGetNextIrpStackLocation routine gives a higher level driver access to the next-lower driver's I/O stack location in an IRP so the caller can set it up for the lower driver.

Syntax


PIO_STACK_LOCATION IoGetNextIrpStackLocation(
  _In_ PIRP Irp
);

Parameters

Irp [in]

A pointer to the IRP.

Return value

IoGetNextIrpStackLocation returns a pointer to the next-lower-level driver's I/O stack location in the given IRP.

Remarks

Each driver that passes IRPs on to lower drivers must set up the stack location for the next lower driver. A driver calls IoGetNextIrpStackLocation to get a pointer to the next-lower driver's I/O stack location.

If a driver is passing the same parameters that it received to the next-lower driver, it should call IoCopyCurrentIrpStackLocationToNext or IoSkipCurrentIrpStackLocation instead of getting a pointer to the next-lower stack location and copying the parameters manually.

The return value is a pointer to an IO_STACK_LOCATION structure. For more information, see I/O Stack Locations.

Requirements

Target platform

Desktop

Version

Available starting with Windows 2000.

Header

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

IRQL

Any level

See also

IO_STACK_LOCATION
IoCallDriver
IoGetCurrentIrpStackLocation
IoCopyCurrentIrpStackLocationToNext
IoSetNextIrpStackLocation
IoSkipCurrentIrpStackLocation

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft