+ Reply to Thread
Results 1 to 4 of 4

Thread: Memory reading

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    3

    Memory reading

    I would like to make something like this, but needing some help:
    So I want to know, how to determine when to stop repeat.
    Sry my poor english.

    Code:
    var
      startadd: dword;
      xint: integer;
    
      //repeat
        readprocessmemory(hProc,ptr(startadd),@xint,4,read);
        inc(startadd);    
      //until startadd=sizeof(memory used by process);

  2. #2
    Senior Member mjrod5's Avatar
    Join Date
    Aug 2008
    Location
    In your stack O___O
    Posts
    3,120
    Loops and stuff
    Maybe that helps?
    In The Oven (err in Development) : Pie
    Quote Originally Posted by uraskiddie View Post
    What are you? Like 10 years old?
    That's complete rubbish, you probably got your depictions of being a "hacker" from a prepubescent forum infested with homosexually-oriented pedophiles.
    Quote Originally Posted by Envy View Post
    Russian?
    Trusted.
    Botnets are like our right hands.
    http://cognitivity.org/

  3. #3
    Junior Member
    Join Date
    Jan 2009
    Posts
    3
    Heh, actually I mean, how to get size of process used memory.

  4. #4
    Senior Member mjrod5's Avatar
    Join Date
    Aug 2008
    Location
    In your stack O___O
    Posts
    3,120
    Code:
    var
    Memory:TMemoryStatus;
    begin
    Memory.dwLength:=Sizeof(Memory);
    GlobalMemoryStatus(Memory);
    label2.Caption:=floattostr(int(Memory.dwTotalPhys/(1024.0*1024)))+' MB';
    label4.Caption:=floattostr(int(Memory.dwAvailPhys/(1024.0*1024)))+' MB';
    label6.Caption:=floattostr(int(Memory.dwTotalPageFile/(1024.0*1024)))+' MB';
    label8.Caption:=floattostr(int(Memory.dwAvailPageFile/(1024.0*1024)))+' MB';
    label10.Caption:=inttostr(Memory.dwMemoryLoad)+' %';
    like that?
    pick whichever :p
    In The Oven (err in Development) : Pie
    Quote Originally Posted by uraskiddie View Post
    What are you? Like 10 years old?
    That's complete rubbish, you probably got your depictions of being a "hacker" from a prepubescent forum infested with homosexually-oriented pedophiles.
    Quote Originally Posted by Envy View Post
    Russian?
    Trusted.
    Botnets are like our right hands.
    http://cognitivity.org/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Memory mapping
    By LttCoder in forum Snippets
    Replies: 3
    Last Post: 18-07-2010, 17:18
  2. Crypter - execute in memory
    By suizit in forum Delphi Help
    Replies: 1
    Last Post: 20-10-2008, 15:14
  3. Reading a file crashes my process
    By Nuffe in forum Delphi Help
    Replies: 3
    Last Post: 23-01-2008, 22:11
  4. [RQ]Memory editing SC/Tut
    By Tray in forum General Programming Help
    Replies: 7
    Last Post: 03-12-2007, 07:49
  5. download to memory by aphex
    By Dark Angel in forum General Programming Help
    Replies: 7
    Last Post: 01-06-2006, 18:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.