WUDF_INTERRUPT_CONFIG_INIT function

[Applies to UMDF 1.x only]

The WUDF_INTERRUPT_CONFIG_INIT function initializes a WUDF_INTERRUPT_CONFIG structure.

Syntax


void WUDF_INTERRUPT_CONFIG_INIT(
  _Out_    PWUDF_INTERRUPT_CONFIG      Configuration,
  _In_     PFN_WUDF_INTERRUPT_NOTIFY   OnInterruptIsr,
  _In_opt_ PFN_WUDF_INTERRUPT_WORKITEM OnInterruptWorkItem
);

Parameters

Configuration [out]

A pointer to a WUDF_INTERRUPT_CONFIG structure.

OnInterruptIsr [in]

A pointer to the driver's OnInterruptIsr event callback function.

OnInterruptWorkItem [in, optional]

A pointer to the driver's OnInterruptWorkItem event callback function, or NULL.

Return value

This function does not return a value.

Remarks

The WUDF_INTERRUPT_CONFIG_INIT function zeros the specified WUDF_INTERRUPT_CONFIG structure and sets its Size member to the structure's size. It also stores the specified callback function pointer(s).

WUDF_INTERRUPT_CONFIG_INIT initializes the configuration structure's ShareVector member to WdfUseDefault and the AutomaticSerialization member to FALSE.

Examples

For a code example that uses WUDF_INTERRUPT_CONFIG_INIT, see IWDFDevice3::CreateInterrupt.

Requirements

Target platform

Desktop

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.11

Header

Wudfinterrupt.h

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft