Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hp-vcd!robertt From: robertt@hp-vcd.HP.COM (Bob Taylor) Newsgroups: comp.windows.ms.programmer Subject: GetFreeSpace in Enhanced Mode Message-ID: <13790003@hp-vcd.HP.COM> Date: 30 Apr 91 17:17:16 GMT Organization: Hewlett Packard, Vancouver, WA Lines: 20 A quick question for anybody that knows: Is there anyway to find out how much real memory (RAM) is available in enhanced mode vs. how big the swapfile is? I'm trying to allocate really big blocks of memory (> 2 meg), but it needs to be in RAM, not on disk. If I use GetFreeSpace to determine what I can allocate, I can't tell the difference between a system with 16M RAM/2M Swapfile and 2M RAM/16M Swapfile. For the first, I'd allocate a much bigger block of memory than for the second. Essentially, I'm looking for the following two pieces of information: 1) Amount of physical RAM installed 2) Size of the current Swapfile. Windows obviously knows this info - does anybody know how I can get it? thanks - bob taylor HP Vancouver