WUDF_WORKITEM_CONFIG_INIT function (wudfworkitem.h)

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

The WUDF_WORKITEM_CONFIG_INIT macro initializes a driver's WUDF_WORKITEM_CONFIG structure.

Syntax

void WUDF_WORKITEM_CONFIG_INIT(
  [out] PWUDF_WORKITEM_CONFIG pConfig,
  [in]  PFN_WUDF_WORKITEM     OnWorkItemFunc
);

Parameters

[out] pConfig

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

[in] OnWorkItemFunc

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

Return value

None

Remarks

Drivers must call WUDF_WORKITEM_CONFIG_INIT before calling IWDFDevice3::CreateWorkItem.

The WUDF_WORKITEM_CONFIG_INIT function stores the pointer that the OnWorkItemFunc parameter specifies and sets the AutomaticSerialization member of the WUDF_WORKITEM_CONFIG structure that is pointed to by the pConfig parameter to TRUE.

Requirements

Requirement Value
End of support Unavailable in UMDF 2.0 and later.
Target Platform Desktop
Minimum UMDF version 1.11
Header wudfworkitem.h

See also

IWDFDevice3::CreateWorkItem

WUDF_WORKITEM_CONFIG