Share via


NdisGetCurrentSystemTime (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

NdisGetCurrentSystemTime returns the current system time, suitable for setting timestamps.

Syntax

VOID NdisGetCurrentSystemTime(
  _In_ PLARGE_INTEGER pSystemTime
);

Parameters

  • pSystemTime [in]
    Pointer to a caller-supplied variable in which this function returns a count of 100-nanosecond intervals since January 1, 1601.

Return value

None

Remarks

An NDIS driver can call NdisGetCurrentSystemTime to set timestamps in the out-of-band blocks associated with packets it indicates or sends.

An NDIS driver might also call NdisGetCurrentSystemTime if it maintains a count of how many packets it receives within any particular interval to tune its performance dynamically. For example, a NIC driver could call NdisGetCurrentSystemTime for each receive interrupt to determine periods of high network traffic, when the driver might disable one or more types of interrupts on the NIC and enable a polling MiniportTimer function to process receives or sends.

Requirements

Target platform

Universal

Version

See NdisGetCurrentSystemTime.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

Any level

See also

MiniportHandleInterrupt

MiniportTimer

NdisGetCurrentProcessorCpuUsage

NdisMSetPeriodicTimer

NDIS_PACKET_OOB_DATA

NDIS_SET_PACKET_TIME_RECEIVED

NDIS_SET_PACKET_TIME_SENT

NDIS_SET_PACKET_TIME_TO_SEND

 

 

Send comments about this topic to Microsoft