Home All Groups Group Topic Archive Search About

Read & WriteMemoryProcess (Adress Space) Problem

Author
18 Jul 2006 10:13 AM
Alex
Seems that those functions can't read from or write to any address beyond 2GB
(7FFFFFFF in hexa). when trying to access addresses beyond 2GB nothing
happens - no action and no exception either.
i am on 32 bit system, but i am using an Unsigned Integer poiter (UIntPtr)
so i Should be able to access 2GB-4GB adresses, except i don't.
the functions just dont work. what do i need to do to make it work?
thanks.

Author
18 Jul 2006 11:16 AM
Cor Ligthert [MVP]
Alex,

Have a look at this info,

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devtest_g/hh/DevTest_g/BootIni_de16d3ec-c437-4628-805f-8945ea598a92.xml.asp

I hope this helps,

Cor

Show quoteHide quote
"Alex" <A***@discussions.microsoft.com> schreef in bericht
news:5ADB5CF9-264F-4889-B7F9-591E07035525@microsoft.com...
> Seems that those functions can't read from or write to any address beyond
> 2GB
> (7FFFFFFF in hexa). when trying to access addresses beyond 2GB nothing
> happens - no action and no exception either.
> i am on 32 bit system, but i am using an Unsigned Integer poiter (UIntPtr)
> so i Should be able to access 2GB-4GB adresses, except i don't.
> the functions just dont work. what do i need to do to make it work?
> thanks.
Author
18 Jul 2006 2:56 PM
Alex
quoted: "On Windows, by default, the lower 2 GB are reserved for user-mode
programs and the upper 2 GB are reserved for kernel-mode programs" - it is
those upper 2GB i need to access. in C++.NET using WriteMemoryProcess() i can
access them but in VB.NET it can't - this is my problem.


"Cor Ligthert [MVP]":

Show quoteHide quote
> Alex,
>
> Have a look at this info,
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devtest_g/hh/DevTest_g/BootIni_de16d3ec-c437-4628-805f-8945ea598a92.xml.asp
>
> I hope this helps,
>
> Cor
>
> "Alex" <A***@discussions.microsoft.com> schreef in bericht
> news:5ADB5CF9-264F-4889-B7F9-591E07035525@microsoft.com...
> > Seems that those functions can't read from or write to any address beyond
> > 2GB
> > (7FFFFFFF in hexa). when trying to access addresses beyond 2GB nothing
> > happens - no action and no exception either.
> > i am on 32 bit system, but i am using an Unsigned Integer poiter (UIntPtr)
> > so i Should be able to access 2GB-4GB adresses, except i don't.
> > the functions just dont work. what do i need to do to make it work?
> > thanks.
>
>
>