WUDF_WORKITEM_CONFIG

WUDF_WORKITEM_CONFIG structure

[Applies to UMDF 1.x only]

The WUDF_WORKITEM_CONFIG structure contains information that is associated with a work item.

Syntax


typedef struct _WUDF_WORKITEM_CONFIG {
  ULONG             Size;
  PFN_WUDF_WORKITEM OnWorkItemFunc;
  BOOLEAN           AutomaticSerialization;
} WUDF_WORKITEM_CONFIG, *PWUDF_WORKITEM_CONFIG;

Members

Size

The size, in bytes, of this structure.

OnWorkItemFunc

The address of an OnWorkItem callback function.

AutomaticSerialization

A Boolean value that, if TRUE, indicates that the framework will synchronize execution of the OnWorkItem callback function with callback functions from other objects that are underneath the work-item object's parent object. If FALSE, the framework does not synchronize execution of the OnWorkItem callback function.

Remarks

Your driver must initialize the WUDF_WORKITEM_CONFIG structure by calling WUDF_WORKITEM_CONFIG_INIT. Your driver can then pass the structure to the IWDFDevice3::CreateWorkItem method as an input parameter.

Setting the AutomaticSerialization member of WUDF_WORKITEM_CONFIG to TRUE has no effect if the driver did not enable automatic callback synchronization by calling IWDFDeviceInitialize::SetLockingConstraint.

Requirements

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.11

Header

Wudfworkitem.h

See also

OnWorkItem
WUDF_WORKITEM_CONFIG_INIT
IWDFDevice3::CreateWorkItem

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft