Thread: Reading ram contents

  1. #1
    Join Date
    Jul 2011

    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
    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 04:49 AM.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, 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, 08:21 AM
  2. reading data contents from files in c++
    By shaheel in forum C++ Programming
    Replies: 4
    Last Post: 04-13-2008, 09:02 PM
  3. reading the contents of a directory
    By Unregistered in forum C++ Programming
    Replies: 10
    Last Post: 04-15-2002, 10: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