KSMETHOD_TYPE_IRP_STORAGE - NtDoc

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

void KSMETHOD_TYPE_IRP_STORAGE(
  [in] Irp
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

Description

This macro accesses the type of method as described in the KSMETHOD_ITEM. If the method will be processed asynchronously using KsDispatchSpecificMethod, this storage must be maintained intact.

Parameters

Irp [in]

Specifies the IRP passed to the handler routine.

Remarks

The relevant 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_TYPE_IRP_STORAGE(Irp)  (*(ULONG_PTR*)(&(Irp)->Tail.Overlay.DriverContext[2]))

See also

KSMETHOD

KSMETHOD_ITEM

KSMETHOD_SET

KsFastMethodHandler

KsMethodHandler

KsMethodHandlerWithAllocator