NdisRawReadPortUlong 宏 (ndis.h)

NdisRawReadPortUlong 从 NIC 上的给定 I/O 端口读取 ULONG 值。

语法

void NdisRawReadPortUlong(
  [in]   Port,
  [out]  Data
);

参数

[in] Port

指定 I/O 端口。 此地址位于初始化期间映射的范围 NdisMRegisterIoPortRange

[out] Data

指向调用方提供的变量的指针,在此变量中,此函数返回从端口读取的 ULONG 值。

返回值

没有

言论

NdisRawReadPortUlong 运行速度很快,因为它不需要在每次调用时将相对于总线的 I/O 端口地址映射到依赖于主机的逻辑端口地址。

要求

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

另请参阅

MiniportInitializeEx

NdisMRegisterIoPortRange

NdisRawReadPortBufferUlong

NdisRawReadPortUchar

NdisRawReadPortUshort

NdisRawWritePortUlong