//read physical address VirtualAddress = PAtoVA(PhysicalAddress, Size); //change cr0 WP //KIRQL irql; //irql = WPOFFx64(); //_disable(); if (MmIsAddressValid(VirtualAddress)) { RtlCopyMemory(VirtualAddress, pWriteBuffer, Size); status = STATUS_SUCCESS; } //_enable(); //WPONx64(irql); MmUnmapIoSpace(VirtualAddress, Size);
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课