Bewerken

Delen via


KSMETHOD_SET_IRP_STORAGE macro (ks.h)

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

Syntax

void KSMETHOD_SET_IRP_STORAGE(
  [in]  Irp
);

Parameters

[in] Irp

Specifies the IRP passed to the handler routine.

Return value

None

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

Requirement Value
Target Platform Desktop
Header ks.h (include Ks.h)

See also

KSMETHOD

KSMETHOD_ITEM

KSMETHOD_SET

KsFastMethodHandler

KsMethodHandler

KsMethodHandlerWithAllocator