|

楼主 |
发表于 2023-10-25 19:09:46
|
显示全部楼层
浙江省丽水市
这样做就可以了吗?
if (NT_SUCCESS(PsLookupProcessByProcessId(WriteInput->ProcessId, &Process)))
{
PHYSICAL_ADDRESS pa = MmGetPhysicalAddress(WriteInput->Address);//地址
if (pa.QuadPart != 0)
{
PVOID va = MmMapIoSpace(pa, WriteInput->Size, MmCached);
if (va) { RtlMoveMemory(va, WriteInput->pBuff, WriteInput->Size); MmUnmapIoSpace(va, WriteInput->Size); }
}
KernalWriteVirtualMem(Process, WriteInput->pBuff, WriteInput->Address, WriteInput->Size);
Status = STATUS_SUCCESS;
ByteIO = sizeof(KERNAL_READ_REQUEST);
}
这个要不要屏蔽掉
KernalWriteVirtualMem(Process, WriteInput->pBuff, WriteInput->Address, WriteInput->Size);
Status = STATUS_SUCCESS;
ByteIO = sizeof(KERNAL_READ_REQUEST); |
|