WDF_TIMER_CONFIG_INIT function (wdftimer.h)

[Applies to KMDF and UMDF]

The WDF_TIMER_CONFIG_INIT function initializes a WDF_TIMER_CONFIG structure for a timer that will use a single due time.

Syntax

void WDF_TIMER_CONFIG_INIT(
  [in] PWDF_TIMER_CONFIG Config,
  [in] PFN_WDF_TIMER     EvtTimerFunc
);

Parameters

[in] Config

A pointer to a WDF_TIMER_CONFIG structure.

[in] EvtTimerFunc

A pointer to a driver-supplied EvtTimerFunc callback function.

Return value

None

Remarks

The WDF_TIMER_CONFIG_INIT function zeros the specified WDF_TIMER_CONFIG structure. Then it sets the structure's Size member, stores the EvtTimerFunc pointer, sets the Period member and the TolerableDelay member to zero, and sets the AutomaticSerialization member to TRUE.

Examples

For a code example that uses WDF_TIMER_CONFIG_INIT, see WdfTimerCreate.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdftimer.h (include Wdf.h)
Library None
IRQL Any level

See also

EvtTimerFunc

WDF_TIMER_CONFIG

WDF_TIMER_CONFIG_INIT_PERIODIC