Windows 7 / Vista are operating systems.
RAM is a physical computer part.
Windows Vista / 7 32bit can support upto 4gb of RAM. Windows 7 64bit can support the following amounts:
Starter: 8GB
Home Basic: 8GB
Home Premium: 16GB
Professional: 192GB
Enterprise: 192GB
Ultimate: 192GB