
Checking total memory in Visual Basic
Quote:
>How can I get the total amount of memory available in Visual Basic or
>does sometime have a DLL to do this? If anyone could help, it would be
>very much appreciated. Thanks
How about:
Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags As Integer) As
Long
This works fine for Win 3.1, but strangely under Win95. Under Windows NT,
you get the amount of physical memory.
--
====================================================================
/\ Mike Schetterer "So far, my worst day mountain
/\/ \ USAF Academy biking has been better than
/ \ \ Colorado my best day at work"
Windows NT -- It's not just for breakfast anymore!
====================================================================