WDF_WORKITEM_CONFIG_INIT function (wdfworkitem.h)

[Applies to KMDF and UMDF]

The WDF_WORKITEM_CONFIG_INIT function initializes a driver's WDF_WORKITEM_CONFIG structure.

Syntax

void WDF_WORKITEM_CONFIG_INIT(
  [out] PWDF_WORKITEM_CONFIG Config,
  [in]  PFN_WDF_WORKITEM     EvtWorkItemFunc
);

Parameters

[out] Config

A pointer to the caller-allocated WDF_WORKITEM_CONFIG structure to initialize.

[in] EvtWorkItemFunc

The address of the driver's EvtWorkItem event callback function.

Return value

None

Remarks

Drivers must call WDF_WORKITEM_CONFIG_INIT before calling WdfWorkItemCreate.

The WDF_WORKITEM_CONFIG_INIT function stores the pointer that the EvtWorkItemFunc parameter specifies and sets the AutomaticSerialization member of the WDF_WORKITEM_CONFIG structure that is pointed to by the Config parameter to TRUE.

Examples

For a code example that uses WDF_WORKITEM_CONFIG_INIT, see WdfWorkItemCreate.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfworkitem.h (include Wdf.h)

See also

EvtWorkItem

WDF_WORKITEM_CONFIG

WdfWorkItemCreate