NdisGetCurrentSystemTime macro (ndis.h)
The NdisGetCurrentSystemTime function returns the current system time, suitable for setting timestamps.
Syntax
void NdisGetCurrentSystemTime(
[in] _pSystemTime
);
Parameters
[in] _pSystemTime
A 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 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 miniport 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 NetTimerCallback function to process receive indications or send requests.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisGetCurrentSystemTime (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisGetCurrentSystemTime (NDIS 5.1)) in Windows XP. |
Target Platform | Universal |
Header | ndis.h (include Ndis.h) |
Library | Ndis.lib |
IRQL | Any level |