// ks.h
void KSMETHOD_SET_IRP_STORAGE(
[in] Irp
);
View the official Windows Driver Kit DDI referenceNo description available.
This macro returns a pointer to the KSMETHOD_SET in which the method is located.
Irp [in]Specifies the IRP passed to the handler routine.
The pointer to a KSMETHOD_SET 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_SET_IRP_STORAGE(Irp) (*(const KSMETHOD_SET**)&(Irp)->Tail.Overlay.DriverContext[0])