How can I access all bytes of RAM and ROM of my computer?

前端 未结 3 1824
名媛妹妹
名媛妹妹 2021-01-22 08:53

I tried pointers and reference(&) but when I try to get the info(I am only reading from memory) computer \"beeps\" and program terminates. NO problem when assigning a pointe

3条回答
  •  Happy的楠姐
    2021-01-22 09:40

    This should help me:

    typedef struct _MEMORY_BASIC_INFORMATION {
    PVOID BaseAddress;
    PVOID AllocationBase;
    DWORD AllocationProtect;
    DWORD RegionSize;
    DWORD State;
    DWORD Protect;
    DWORD Type;
    } MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION;
    

    and this:

    VirtualQueryEx(
    HANDLE hProcess,
    LPCVOID lpAddress,
    PMEMORY_BASIC_INFORMATION lpBuffer,
    DWORD dwLength
    );
    

    at least in my OS thanks Bo Persson and Jerry Coffin or Mysticial

提交回复
热议问题