KSMETHOD_TYPE_IRP_STORAGE macro

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.

Syntax


VOID KSMETHOD_TYPE_IRP_STORAGE(
  [in] IRP Irp
);

Parameters

Irp [in]

Specifies the IRP passed to the handler routine.

Return value

Returns the type of method described in the relevant KSMETHOD_ITEM structure.

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

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: