KSMETHOD_ITEM_IRP_STORAGE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ks.h

void KSMETHOD_ITEM_IRP_STORAGE(
  [in] Irp
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ks-ksmethod_item_irp_storage)

Description

This macro accesses a pointer to the relevant KSMETHOD_ITEM. Note that this pointer is only set when using KsMethodHandlerWithAllocator.

Parameters

Irp [in]

Specifies the IRP passed to the handler routine.

Remarks

The pointer to a KSMETHOD_ITEM structure is extracted from Irp->Tail.Overlay.DriverContext. Parameters in DriverContext are initialized by KsMethodHandler and KsMethodHandlerWithAllocator.

The macro is defined as follows:

#define KSMETHOD_ITEM_IRP_STORAGE(Irp)  (*(const KSMETHOD_ITEM**)&(Irp)->;Tail.Overlay.DriverContext[3])

See also

KSMETHOD

KSMETHOD_ITEM

KSMETHOD_SET

KsFastMethodHandler

KsMethodHandler

KsMethodHandlerWithAllocator