Re: How do I dig a memory value out?



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


.



Relevant Pages

  • Re: Fields vs Properties vs Methods
    ... MSDN seems to use the term field loosely. ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ... >> When you saw in past a record or a memory description graphical it was ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Virtual memory
    ... You can configure virtual memory in windows xp and thereby improve the ... How to set performance options in Windows XP ... if you have background programs such as printing or disk ... It is also known as the paging file. ...
    (microsoft.public.windowsxp.perform_maintain)
  • [NT] NNTP Service in Windows Contains Memory Leak
    ... NNTP Service in Windows Contains Memory Leak ... An affected server could be restored to normal service by ...
    (Securiteam)
  • Re: Physical Memory
    ... These Windows services are started: ... Memory optimizers/defragers are nothing more than snake ... These optimizers work by making demands on the Windows Memory Manager ... The funny thing about all of this nonsense is that the snake oil memory ...
    (microsoft.public.windowsxp.general)
  • Re: Slow performance
    ... computer has two memory slots so to achieve 1 gb you need to install 2 x ... own set up consists of AVG 8 Anti-Virus, Spybot S& D, Windows Defender ... of programme is generally not recommended in these newsgroups. ... My disk drive is pretty full right now, mainly due to fact that I just ...
    (microsoft.public.windowsxp.perform_maintain)