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 |
|
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
Any level |
See also
NdisGetCurrentProcessorCpuUsage