Board index » delphi » How to get Windows Resources Free percent and the amount of memory free to windows or just total memory free.

How to get Windows Resources Free percent and the amount of memory free to windows or just total memory free.

"Success is going from failure to failure with great enthusiasm"   -Mark Twain
God damn, I love success!!!

 

Re:How to get Windows Resources Free percent and the amount of memory free to windows or just total memory free.


In article <324ea048.1062...@netnews.worldnet.att.net>, crand...@nlenx.com?
says...

Quote

>How to get Windows Resources Free percent
>There are two functions in the API to do this, one for the GDI, one for the

kernel.  The one in the Windows About box just shows the minimum of the two.  
Couldn't find them after a quick glance, though.

Quote
>and the amount of memory free to windows or just total memory free.

Use MemAvail.

Hope this helps,
Jochen

Re:How to get Windows Resources Free percent and the amount of memory free to windows or just total memory free.


Quote
> >How to get Windows Resources Free percent
> >There are two functions in the API to do this, one for the GDI, one for the
> kernel.  The one in the Windows About box just shows the minimum of the two.
> Couldn't find them after a quick glance, though.

Unfortunately, they're not in the Win32 API. The "best" way is to thunk
down to the 16-bit API calls using QT_Thunk or something similar, but
it's very messy, and I hate it.

Thanks, cheers,
+-----------------------------+------------------------------------+
| Adrian Cable [Doom Master!] | Internet: [MeGALiTH on IRC]        |
| Fidonet: 2:252/169.3        | aca...@sv.span.com                 |
+-----------------------------+------------------------------------+
| Latest ViRC '96 release: 0.62                                    |
| Get it from: http://apollo3.com/~acable/virc.html                |
+------------------------------------------------------------------+

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.3i

mQBNAzICpWsAAAECAKELh2Zi1a+jD1Nj7VYloLg+uVimsRZHv5DgfCDOOo0nnXNq
KE19vjB1ZD4Rs1NTP8cQEjsnTwrHajgcZK8ecUkABRG0IUFkcmlhbiBDYWJsZSA8
YWNhYmxlQHN2LnNwYW4uY29tPokAVQMFEDICpWtqOBxkrx5xSQEBYjkB/jEcpWFp
y4t6XKL/zj34hfyCZYJKXQpuJlMWklywhu5OC2Z6WlsKeS6deKTyrW0GWw9hw6gS
qPdw+TcN9PSQBbE=
=6ioa
-----END PGP PUBLIC KEY BLOCK-----

Re:How to get Windows Resources Free percent and the amount of memory free to windows or just total memory free.


On Mon, 07 Oct 1996 19:44:37 +0100, Adrian Cable

Quote
<megal...@jimc.demon.co.uk> wrote:
>> >How to get Windows Resources Free percent
>> >There are two functions in the API to do this, one for the GDI, one =
for the
>> kernel.  The one in the Windows About box just shows the minimum of =
the two.
>> Couldn't find them after a quick glance, though.

>Unfortunately, they're not in the Win32 API. The "best" way is to thunk
>down to the 16-bit API calls using QT_Thunk or something similar, but
>it's very messy, and I hate it.

Or let someone else do the messy work for you:
http://www.tempest-sw.com/freeware/
--
Ray Lischner, Tempest Software, Inc., Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)

Other Threads