Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Reference
 IoCopyCurrentIrpStackLocationToNext

  Switch on low bandwidth view
Windows Driver Kit: Kernel-Mode Driver Architecture
IoCopyCurrentIrpStackLocationToNext

The IoCopyCurrentIrpStackLocationToNext routine copies the IRP stack parameters from the current I/O stack location to the stack location of the next-lower driver.

VOID 
  IoCopyCurrentIrpStackLocationToNext(
    IN PIRP  Irp
    );

Parameters

Irp
Pointer to the IRP.

Return Value

None

Comments

A driver calls IoCopyCurrentIrpStackLocationToNext to copy the IRP parameters from its stack location to the next-lower driver's stack location.

After calling this routine, a driver typically sets an I/O completion routine with IoSetCompletionRoutine before passing the IRP to the next-lower driver with IoCallDriver. Drivers that pass on their IRP parameters but do not set an I/O completion routine should call IoSkipCurrentIrpStackLocation instead of this routine.

Requirements

IRQL: <=DISPATCH_LEVEL

Headers: Declared in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.

See Also

IO_STACK_LOCATION, IoCallDriver, IoSetCompletionRoutine, IoSkipCurrentIrpStackLocation


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker