NdisFreeTimerObject function (ndis.h)

The NdisFreeTimerObject function frees a timer object that was allocated with the NdisAllocateTimerObject function.

Syntax

void NdisFreeTimerObject(
  [in] NDIS_HANDLE TimerObject
);

Parameters

[in] TimerObject

A handle to a timer object that NDIS provides when a driver calls the NdisAllocateTimerObject function.

Return value

None

Remarks

To use timer services, an NDIS driver first calls the NdisAllocateTimerObject function to initialize a timer object. Typically, NdisAllocateTimerObject is called when a driver initializes. The driver must call NdisFreeTimerObject to free the timer object when the timer is no longer required.

To cancel a timer, call the NdisCancelTimerObject function. NdisCancelTimerObject dequeues the timer object if it is currently queued.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL <= DISPATCH_LEVEL
DDI compliance rules Irql_Timer_Function(ndis)

See also

NDIS_TIMER_CHARACTERISTICS

NdisAllocateTimerObject

NdisCancelTimerObject