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
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