how to get memeory size with delphi3

How to use the functions include in kernel32 or other dll in delphi 3.
Example:
I  want to detect the memory size and the type of processor. ???
I try to use the function get systeminfo
    Thanks for your help
   dub...@st-gilles.rennes.inra.fr