help me for edit this code to readmemory from pointer

03/17/2014 14:15 nggebu#1
my code using Dev C++


please help me thx before :)
03/21/2014 10:41 nerdsupreme#2
Ahm,

Quote:
Important This function is obsolete and should not be used. Despite its name, it does not guarantee that the pointer is valid or that the memory pointed to is safe to use. For more information, see Remarks on this page.
But if you still want to use it:

Quote:
If the calling process has read access to all bytes in the specified memory range, the return value is zero.
So, first of all you check if the memoryregion from "ulBase" to the size of unsigned int is readable. Then you check if the memoryregion from "ulBase" + "iOffset" is readable.

So please change that in one If: If isbadreadptr(ulbase,sizeof(unsignedint)+ioffset)


Wow. I read "your" code now, and...:WTF

Quote:
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
if (dwReason == DLL_PROCESS_ATTACH){
Whoever wrote this code, you didn't. So i decided to not help you with your problem.

Tip: Delete everything.

So at last there is only one thing to say:

Quote:
Greetings nggebu!

No.

Regards