利用VC++讀寫XP/Win7/Win10下的物理內(nèi)存;
接口如下:
BOOL ReadPhysicalMemory(OUT PVOID pvDataBuffer, //用于保存讀取數(shù)據(jù)的緩沖區(qū)首地址
IN DWORD dwAddress, //要讀取的數(shù)據(jù)的首地址,要求4KB對齊
IN DWORD dwLength //讀取的長度
);
BOOL WritePhysicalMemory(IN PVOID pvDataBuffer, //用于保存要寫入的數(shù)據(jù)的緩沖區(qū)首地址
IN DWORD dwAddress, //要目標地址,要求4KB對齊
IN DWORD dwLength //寫入的長度
);