Like Tree1Likes
  • 1 Post By grumpy

Reading ram contents

This is a discussion on Reading ram contents within the C++ Programming forums, part of the General Programming Boards category; Hi members, Now a days i am bit confused as i wanna read the contents of ram through c programming. ...

  1. #1
    Banned
    Join Date
    Jul 2011
    Posts
    12

    Reading ram contents

    Hi members,
    Now a days i am bit confused as i wanna read the contents of ram through c programming. I have made a little search and i came to know about some functions like absread(). I know that this may be a mind boggling question as operating system will also be sharing the ram at same time and if i read the content of that part it may create a big problem for me.
    i will be highly obliged if anyone can help me in my question.

    waiting for a quick response from senior members.

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,530
    Modern operating systems are specifically designed to prevent user programs from arbitrarily accessing memory (or directly accessing hardware). They do this because user programs that can read or write to memory can do harmful things, such as crashing the operating system, violating privacy of other users of the system, etc etc.

    absread() dates from the time of MS-DOS, which was not designed to prevent user programs arbitrarily playing with memory. Modern windows operating systems can execute quite a few MS-DOS programs (through designed backward compatibility) but will typically terminate those programs that attempt to arbitrarily access memory.

    And since such questions tend to come from people who are seeking to hack into the system or other user space, I'll leave further discussion alone.
    Last edited by grumpy; 07-30-2011 at 05:49 AM.
    rags_to_riches likes this.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy in reply to you, it is likely you deserve it. Suck it up, sunshine, and read this, this, and this before posting again.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. On reading Directory contents and listing them.
    By Deathfrost in forum C Programming
    Replies: 9
    Last Post: 07-14-2009, 09:21 AM
  2. reading data contents from files in c++
    By shaheel in forum C++ Programming
    Replies: 4
    Last Post: 04-13-2008, 10:02 PM
  3. reading the contents of a directory
    By Unregistered in forum C++ Programming
    Replies: 10
    Last Post: 04-15-2002, 11:19 AM
  4. Reading All Contents of a file
    By BigSter in forum C++ Programming
    Replies: 13
    Last Post: 02-12-2002, 12:13 AM
  5. Reading all contents of a file
    By BigSter in forum C++ Programming
    Replies: 2
    Last Post: 02-06-2002, 01:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21