How do you read directly from physical memory?

前端 未结 7 915
灰色年华
灰色年华 2020-11-30 02:01

In C or C++ (windows), how do you read RAM by giving a physical (not virtual) address? That means without going trough virtual memory system (mmu tables), and being specific

7条回答
  •  盖世英雄少女心
    2020-11-30 02:32

    Check this link: Access Physical Memory, Port and PCI Configuration Space

    But start from Windows Vista, even WinHex cannot open the physical ram.

提交回复
热议问题