WDF_DPC_CONFIG_INIT function (wdfdpc.h)

[Applies to KMDF only]

The WDF_DPC_CONFIG_INIT function initializes a driver's WDF_DPC_CONFIG structure.

Syntax

void WDF_DPC_CONFIG_INIT(
  [out] PWDF_DPC_CONFIG Config,
  [in]  PFN_WDF_DPC     EvtDpcFunc
);

Parameters

[out] Config

A pointer to a driver-allocated WDF_DPC_CONFIG structure.

[in] EvtDpcFunc

A pointer to a driver-supplied EvtDpcFunc callback function.

Return value

None

Remarks

The WDF_DPC_CONFIG_INIT function stores the specified EvtDpcFunc pointer and sets the AutomaticSerialization member of the WDF_DPC_CONFIG structure to TRUE.

Examples

For a code example that uses the WDF_DPC_CONFIG_INIT function, see WdfDpcCreate.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Header wdfdpc.h (include Wdf.h)
IRQL Any level

See also

EvtDpcFunc

WDF_DPC_CONFIG