KSMETHOD_ITEM_IRP_STORAGE macro (ks.h)
This macro accesses a pointer to the relevant KSMETHOD_ITEM. Note that this pointer is only set when using KsMethodHandlerWithAllocator.
Syntax
void KSMETHOD_ITEM_IRP_STORAGE(
[in] Irp
);
Parameters
[in] Irp
Specifies the IRP passed to the handler routine.
Return value
None
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])
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | ks.h (include Ks.h) |