Hardware Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

KSMETHOD_ITEM_IRP_STORAGE macro

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 Irp
);

Parameters

Irp [in]

Specifies the IRP passed to the handler routine.

Return value

Returns a pointer to a KSMETHOD_ITEM structure.

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

Target platform

Desktop

Header

Ks.h (include Ks.h)

See also

KSMETHOD_ITEM
KSMETHOD_SET
KSMETHOD
KsMethodHandler
KsFastMethodHandler
KsMethodHandlerWithAllocator

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft