Thread: [C] Get the page-size in memory

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    161

    Talking [C] Get the page-size in memory

    Hi to everyone, I just was trying to find an API that lets me print the amounth of kb (4?) I have as page-size..

    I've tryed to look for it in msdn but page, frame and memory are quite used everywhere

    thanx to everyone , heppy xmas
    This forum is the best one I've ever seen. Great ppl, great coders

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I'm not sure if I am interpreting your cryptic post correctly but if you are trying to retrieve the system page size you can use GetSystemInfo with SYSTEM_INFO::dwPageSize. This value is typically 4096.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    161
    anonytmouse, you got it

    thanx
    This forum is the best one I've ever seen. Great ppl, great coders

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with shared memory shmdt() shmctl()
    By Jcarroll in forum C Programming
    Replies: 1
    Last Post: 03-17-2009, 10:48 PM
  2. Trouble with DMA Segmentation Faults
    By firestorm717 in forum C Programming
    Replies: 2
    Last Post: 05-07-2006, 09:20 PM
  3. fgets() array size memory concern
    By Sereby in forum C Programming
    Replies: 6
    Last Post: 07-28-2004, 10:50 PM
  4. Is it necessary to write a specific memory manager ?
    By Morglum in forum Game Programming
    Replies: 18
    Last Post: 07-01-2002, 01:41 PM
  5. Memory size
    By a_learner in forum C Programming
    Replies: 4
    Last Post: 10-08-2001, 08:10 PM