how much memory in my computer

hello ..
does anyone knws how to write a program or small function to check how much memory is installed in the computer ?
i have tried so hard to try this but i dont know how !!
thanks,
Which type of memory? On which operating system?
RAM memory , windows operating system
thanks alot for your answer
Try GetPhysicallyInstalledSystemMemory from Windows API: http://msdn.microsoft.com/en-us/library/cc300158%28VS.85%29.aspx
Topic archived. No new replies allowed.