KSMETHOD_SET_IRP_STORAGE macro

This macro returns a pointer to the KSMETHOD_SET in which the method is located.

Syntax


VOID KSMETHOD_SET_IRP_STORAGE(
  [in] IRP Irp
);

Parameters

Irp [in]

Specifies the IRP passed to the handler routine.

Return value

Returns a pointer to the KSMETHOD_SET in which the method is located.

Remarks

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])

Requirements

Target platform

Header

Ks.h (include Ks.h)

See also

KSMETHOD_ITEM
KSMETHOD_SET
KSMETHOD
KsMethodHandler
KsFastMethodHandler
KsMethodHandlerWithAllocator

 

 

Send comments about this topic to Microsoft

Show: