Article View: comp.windows.ms.programmer
Article #2375GetFreeSpace in Enhanced Mode
From: Bob Taylor
Date: Tue, 30 Apr 1991 17:17
Date: Tue, 30 Apr 1991 17:17
20 lines
1133 bytes
1133 bytes
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
Technical Details
Message-ID:
<13790003@hp-vcd.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hp-vcd!roberttShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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