NdisRawReadPortUchar 宏 (ndis.h)
NdisRawReadPortUchar 从 NIC 上的给定 I/O 端口读取字节。
语法
void NdisRawReadPortUchar(
[in] Port,
[out] Data
);
参数
[in] Port
指定 I/O 端口。 此地址位于初始化期间映射的范围 NdisMRegisterIoPortRange。
[out] Data
指向调用方提供的变量的指针,在此变量中,此函数从端口返回读取的字节。
返回值
没有
言论
NdisRawReadPortUchar 运行速度很快,因为它无需在每次调用时将总线相对 I/O 端口地址映射到依赖于主机的逻辑端口地址。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows Vista 中支持 NDIS 6.0 和 NDIS 5.1 驱动程序(请参阅 NdisRawReadPortUchar (NDIS 5.1)。 Windows XP 中支持 NDIS 5.1 驱动程序(请参阅 NdisRawReadPortUchar (NDIS 5.1) 。 |
目标平台 | 普遍 |
标头 | ndis.h (包括 Ndis.h) |
IRQL | 任何级别 |