NdisGetCurrentSystemTime 宏 (ndis.h)

NdisGetCurrentSystemTime 函数返回适用于设置时间戳的当前系统时间。

语法

void NdisGetCurrentSystemTime(
  [in]  _pSystemTime
);

参数

[in] _pSystemTime

指向调用方提供的变量的指针,在此变量中,此函数返回自 1601 年 1 月 1 日以来的 100 纳秒间隔计数。

返回值

备注

如果 NDIS 驱动程序在任何特定时间间隔内保持接收的数据包数,以动态调整其性能,则 NdisGetCurrentSystemTime 也可能调用 NdisGetCurrentSystemTime 。 例如,微型端口驱动程序可以为每个接收中断调用 NdisGetCurrentSystemTime ,以确定高网络流量的时间段,当驱动程序可能在 NIC 上禁用一个或多个中断类型,并启用轮询 NetTimerCallback 函数来处理接收指示或发送请求。

要求

要求
最低受支持的客户端 NDIS 6.0 和 NDIS 5.1 驱动程序支持 (请参阅 Windows Vista 中的 NdisGetCurrentSystemTime (NDIS 5.1) ) 。 NDIS 5.1 驱动程序支持 (请参阅 Windows XP 中的 NdisGetCurrentSystemTime (NDIS 5.1) ) 。
目标平台 通用
标头 ndis.h (包括 Ndis.h)
Library Ndis.lib
IRQL 任何级别

另请参阅

NetTimerCallback