process information, explanation help ??

This is a discussion on process information, explanation help ?? within the Windows Programming forums, part of the Platform Specific Boards category; i god a code example that reads a process and lists is address's that in use and in memory.. basicly ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    14

    process information, explanation help ??

    i god a code example that reads a process and lists is address's that in use and in memory..

    basicly uses this things:

    SYSTEM_INFO si;
    GetSystemInfo(&si);
    MEMORY_BASIC_INFORMATION mbi;

    my question is which kind of memory information is this functions getting when in a while cycle using si.lpMaximumApplicationAddress and retrieve information using VirtualQueryEx..

    is the address and content in memory RAM that is being read ???

    and my second question i thing is simple but i dont know... i want to pass a var that is -> %.8x to a string in way i could manipulate arrays, because i try everything using this vars %.8x to put them into arrays just the long numbers and was impossible... someone could help ? i think i just need to pass them into strings to be easy to put them inside arrays...

  2. #2
    Registered User
    Join Date
    Apr 2007
    Posts
    14
    no one ??

    i just need to know which information is given by that functions, and how to pass a var type %.8x to a %s (string)

    some help pls

  3. #3
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,424
    my question is which kind of memory information is this functions getting when in a while cycle using si.lpMaximumApplicationAddress
    lpMaximumApplicationAddress
    A pointer to the highest memory address accessible to applications and DLLs.

    Just as it is written in the reference highest address possible...


    is the address and content in memory RAM that is being read ???
    The address is from the process address space... the memory page can be located in the RAM or on the disk - if the current page is swapped... The OS does its work by moving memory pages to the swap and back as needed...

    i want to pass a var that is -> %.8x to a string in way i could manipulate arrays
    I don't realy understand what do you want to do...
    Maybe this:
    Code:
    char my_var[]="%.8x";
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  4. #4
    Registered User
    Join Date
    Apr 2007
    Posts
    14
    thanks for the help...

    but that
    Code:
    char my_var[]="%.8x";
    will set inside the array the string "%.8x" ?? because what i need is what is inside the var %.8x the value for example 0xffffffff

    imagine i have a cycle i list all address's and i want to put all that address's from the list into a array and i'm having problems doing that...

    thanks about the explanations

  5. #5
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,424
    What is %.8x? name of the var? type of it? I don't know such a notation in C
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  6. #6
    Registered User
    Join Date
    Apr 2007
    Posts
    14
    the %.8x is the type of var...

    when i get home ill post a code example..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  2. Almost finished with Round Robin algorithm
    By Shinobi-wan in forum C++ Programming
    Replies: 2
    Last Post: 12-19-2004, 02:00 PM
  3. Linux: Send keyboard input to background process
    By xErath in forum Tech Board
    Replies: 2
    Last Post: 12-09-2004, 06:02 PM
  4. passing a connection to another process.
    By Kinasz in forum Networking/Device Communication
    Replies: 3
    Last Post: 10-09-2004, 05:34 PM
  5. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM

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