Read & WriteMemoryProcess (Adress Space) Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex

    #1

    Read & WriteMemoryProcess (Adress Space) Problem

    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.
  • Cor Ligthert [MVP]

    #2
    Re: Read & WriteMemoryProc ess (Adress Space) Problem

    Alex,

    Have a look at this info,

    http://msdn.microsoft.com/library/de...598a92.xml.asp

    I hope this helps,

    Cor

    "Alex" <Alex@discussio ns.microsoft.co mschreef in bericht
    news:5ADB5CF9-264F-4889-B7F9-591E07035525@mi crosoft.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.

    Comment

    • Alex

      #3
      Re: Read &amp; WriteMemoryProc ess (Adress Space) Problem

      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 WriteMemoryProc ess() i can
      access them but in VB.NET it can't - this is my problem.


      "Cor Ligthert [MVP]":
      Alex,
      >
      Have a look at this info,
      >
      http://msdn.microsoft.com/library/de...598a92.xml.asp
      >
      I hope this helps,
      >
      Cor
      >
      "Alex" <Alex@discussio ns.microsoft.co mschreef in bericht
      news:5ADB5CF9-264F-4889-B7F9-591E07035525@mi crosoft.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.
      >
      >
      >

      Comment

      Working...