-
Memory size
hi again
here's another question :
Write a program to pickup the memory size of your computer and display it on to the screen.
I read the notes and found that the memory size of the computer is stored at the location 0x413 and 0x414.
but how could I find this location.....and how could I work with these numbers.
your help will be appreciated
-
I'm using VC++6.0 on Windows98
can't we track the virtual memory......or is there no way for doing it
can u explain me somewhat more about this problem
anyways thanx for the consideration
bye
-
yep, it's all windows api. check the msdn, there is an article on how windows handle virtual memory. there is an article about it.
the way it's done is that there is an api function and a standard win-api structure. u pass a pointer to the structure in the function and it fills it up.
the structure has the format:
struct whatever
{
total_physical
free_physical
total_virtual
...
...
}
check article in msdn for it. sorry i cant help with more details, i dont have vcc on this machine...
null
-
ok man. here is your info:
Memory Management Structures
========================
http://msdn.microsoft.com/library/de...emman_2rw3.asp
hope it helps.
take care
null
-
I've used GlobalMemoryStatus(&MemStatus);
I found that it was not very accurate. Could not track lost mem with it. Windows seems to allocate in small amounts then suddenly free large amounts so I was getting very different results. Sometimes a function would use -ve amounts of mem.