WUDF_WORKITEM_CONFIG_INIT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wudfworkitem.h

VOID WUDF_WORKITEM_CONFIG_INIT(
  [out] PWUDF_WORKITEM_CONFIG pConfig,
  [in]  PFN_WUDF_WORKITEM     OnWorkItemFunc
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wudfworkitem-wudf_workitem_config_init)

WUDF_WORKITEM_CONFIG_INIT function

Description

[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.

Parameters

pConfig [out]

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

OnWorkItemFunc [in]

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

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.

See also

IWDFDevice3::CreateWorkItem

WUDF_WORKITEM_CONFIG