Okay, so I'm basically writing a c .dll that will iterate through memory of the target process and report if a certain value is true.
I have this working fine (through the use of pointers), however, when it hits region of memory that hasn't been allocated it crashes the process. I was looking for a method (preferably not through Windows API) to check whether or not the memory has being allocated.
Code looks something like this:
Thanks for any help .Code:for(i=0x10000;i<0x7FFFFFFF;i+=0x10000) { if(*(DWORD*)(i + 0xAC) == 0x16945630) { pdwMyAddr = (DWORD*)(i + 0xAC); //Abritrary code here. } }