Re: How do I dig a memory value out?
- From: "Someone" <nobody@xxxxxxx>
- Date: Sun, 11 Sep 2005 11:53:21 -0400
Besides what others have suggested, like CopyMemory, look in MSDN for these
functions if the pointer belongs to another process:
Toolhelp32ReadProcessMemory(), works with Windows 95+, exccept NT 3.X and NT
4.0
ReadProcessMemory(), works with Windows 95+, use OpenProcess() to get a
handle.
Not all addresses are valid, so you can't make a loop and print or search
the contents of every possible addess, you would get a GPF and your VB IDE
or EXE will crash, so save often.
There are functions that tell you if a region in memory is ok to access,
check these in MSDN:
IsBadReadPtr
IsBadCodePtr
IsBadStringPtr
IsBadWritePtr
<vintage> wrote in message news:e9M%23HFUtFHA.3236@xxxxxxxxxxxxxxxxxxxxxxx
> Hi all,
>
> I have a memory address in
>
> dim mymem as long
>
> I need to see what is the contents of this memory?
>
> thanks.
>
>
>
.
- References:
- How do I dig a memory value out?
- From: vintage
- How do I dig a memory value out?
- Prev by Date: Re: Help for C# Interview questions and career decision
- Next by Date: i'm going insane!! with The callee (server [not server application]) is not
- Previous by thread: Re: How do I dig a memory value out?
- Next by thread: Determing if background app ended
- Index(es):
Relevant Pages
|