WDF_WORKITEM_CONFIG_INIT function

[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

Config [out]

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

EvtWorkItemFunc [in]

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

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

 

 

Send comments about this topic to Microsoft

Show: