Condividi tramite


PFNKSHANDLER routine

The minidriver-provided KStrSupportHandler determines support for a particular method item. Provide a pointer to this handler in the relevant KSMETHOD_ITEM structure.

Syntax

PFNKSHANDLER KStrSupportHandler;

NTSTATUS KStrSupportHandler(
  _In_    PIRP          Irp,
  _In_    PKSIDENTIFIER Request,
  _Inout_ PVOID         Data
)
{ ... }

Parameters

  • Irp [in]
    Specifies the IRP that contains the method request.

  • Request [in]
    Specifies an aligned copy of the method parameter. This is typically a pointer to a KSMETHOD structure.

  • Data [in, out]
    Specifies an aligned copy of the method data parameter or the system address of the original data parameter, depending on the flag that was specified in the KSMETHOD_ITEM structure for the method.

Return value

Return STATUS_SUCCESS if the method is handled or an error code to indicate that it is not.

Remarks

The minidriver specifies this routine's address in the SupportHandler member of the KSMETHOD_ITEM structure.

The handler declaration used for KStrMethodHandler and KStrSupportHandler is also used for handlers of property and event sets, with the same parameters and return values.

Requirements

Target platform

Desktop

Header

Ks.h (include Ks.h)

See also

KSMETHOD

KsMethodHandler

KSMETHOD_ITEM

KSMETHOD_SET

 

 

Send comments about this topic to Microsoft