内核驱动重写寄存器值
发布时间
阅读量:
阅读量
Within the Kernel Model's drivers, data is written into specific hexadecimal addresses, including registers, memory locations, or I/O ports. These addresses are all in hexadecimal format.
主要依赖的是MSDN中提供的MmMapIoSpace函数。此函数将一十六进制物理地址映射至一指向针,并基于此指向针执行操作以更改对应物理单元的数据。该详细信息可参考微软的MSDN文档:
该文档链接为微软官方文档页面地址:Microsoft Office官方文档,其中包含详细的技术说明和相关资源。
以下是使用该方法操作物理地址的代码示例:
LARGE_INTEGER memAddress;
PULONG pMemAddress;
memAddress.QuadPart= 0xFED0D048;
pMemAddress = (PULONG) MmMapIoSpace(memAddress,
sizeof(ULONG), MmNonCached);
*pMemAddr
全部评论 (0)
还没有任何评论哟~
