Condividi tramite


struttura NDIS_TIMER_CHARACTERISTICS (ndis.h)

La struttura NDIS_TIMER_CHARACTERISTICS definisce le caratteristiche di un timer singolo o periodico.

Sintassi

typedef struct _NDIS_TIMER_CHARACTERISTICS {
  NDIS_OBJECT_HEADER   Header;
  ULONG                AllocationTag;
  PNDIS_TIMER_FUNCTION TimerFunction;
  PVOID                FunctionContext;
} NDIS_TIMER_CHARACTERISTICS, *PNDIS_TIMER_CHARACTERISTICS;

Membri

Header

Struttura NDIS_OBJECT_HEADER per la struttura NDIS_TIMER_CHARACTERISTICS. Impostare il membro Type della struttura Header specifica NDIS_OBJECT_TYPE_TIMER_CHARACTERISTICS, il membro Revision NDIS_TIMER_CHARACTERISTICS_REVISION_1 e il membro Size su NDIS_SIZEOF_TIMER_CHARACTERISTICS_REVISION_1.

AllocationTag

Stringa delimitata da virgolette singole e contenente fino a quattro caratteri, in genere specificati in ordine inverso. È necessario specificare questo tag. NDIS usa questo tag quando alloca memoria per il timer.

TimerFunction

Puntatore a un punto di ingresso per una funzione netTimerCallback. NDIS chiama questa funzione quando viene attivato un timer.

FunctionContext

Puntatore a un'area di contesto allocata dal driver. NDIS passa questo puntatore alla funzione NetTimerCallback quando viene attivato un timer.

Osservazioni

Per allocare e inizializzare un oggetto timer, i driver NDIS chiamano la funzione NdisAllocateTimerObject e forniscono una struttura NDIS_TIMER_CHARACTERISTICS. Il timer non viene avviato finché il driver non chiama la funzione NdisSetTimerObject.

Fabbisogno

Requisito Valore
client minimo supportato Supportato in NDIS 6.0 e versioni successive.
intestazione ndis.h (include Ndis.h)

Vedere anche

NDIS_OBJECT_HEADER

NdisAllocateTimerObject

NdisSetTimerObject

NetTimerCallback