// wudfworkitem.h
VOID WUDF_WORKITEM_CONFIG_INIT(
[out] PWUDF_WORKITEM_CONFIG pConfig,
[in] PFN_WUDF_WORKITEM OnWorkItemFunc
);
View the official Windows Driver Kit DDI referenceNo description available.
[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.
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.
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.