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;

Members

Header

Struttura NDIS_OBJECT_HEADER per la struttura NDIS_TIMER_CHARACTERISTICS. Impostare il membro Type della struttura specificata da Header su NDIS_OBJECT_TYPE_TIMER_CHARACTERISTICS, il membro Revision su 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 invertito. È 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.

Commenti

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 fino a quando il driver chiama la funzione NdisSetTimerObject .

Requisiti

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

Vedi anche

NDIS_OBJECT_HEADER

NdisAllocateTimerObject

NdisSetTimerObject

NetTimerCallback