NdisGetCurrentSystemTime (Windows Embedded CE 6.0)

1/6/2010

This function returns the current system time, suitable for setting time stamps.

Syntax

VOID NdisGetCurrentSystemTime(
  PLARGE_INTEGER pSystemTime
);

Parameters

  • pSystemTime
    [in] Points 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 time stamps in the out-of-band blocks associated with packets it indicates or sends.

An NDIS driver also might 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 particularly 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 and/or sends.

Requirements

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
MiniportHandleInterrupt
MiniportTimer
NdisMSetPeriodicTimer
NDIS_PACKET_OOB_DATA
NDIS_SET_PACKET_TIME_RECEIVED
NDIS_SET_PACKET_TIME_SENT
NDIS_SET_PACKET_TIME_TO_SEND