The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => Topic started by: Bill Cravener on February 27, 2012, 03:47:47 PM

Title: Show free Ram on a tiny title bar example.
Post by: Bill Cravener on February 27, 2012, 03:47:47 PM
Here is a simple Masm32 example that sits at the center-top of your screen which displays your available free RAM. This little tool is always on top so it can be seen at all times. Shows you how to round a region, how to create a dragable windowless title bar and how to retrieve and display your systems available free RAM using a timer. I've tested it on both Win 7 and XP.

http://www.quickersoft.com/examples/FreeMem.zip

Or it can be downloaded from my site link below.

Title: Re: Show free Ram on a tiny title bar example.
Post by: dedndave on February 27, 2012, 04:21:49 PM
very cool little box   :U
i can use that to test my code, too   :P
Title: Re: Show free Ram on a tiny title bar example.
Post by: Bill Cravener on February 27, 2012, 06:55:17 PM
Hi Dave, I had a somewhat boring Sunday so I had me some alcohol then started playing around with coding and that little FreeMem utility is what happened. I really don't remember doing it but today I checked it over and it looks OK so I decided to post it for others to play with. :bg
Title: Re: Show free Ram on a tiny title bar example.
Post by: dedndave on February 27, 2012, 09:37:26 PM
QuoteI really don't remember doing it...

i hate it when i do that - lol
it must be a sign that you are a true nerd   :U
Title: Re: Show free Ram on a tiny title bar example.
Post by: xandaz on February 27, 2012, 11:38:02 PM
   Great example Bill. Thanks
Title: Re: Show free Ram on a tiny title bar example.
Post by: jj2007 on February 28, 2012, 12:04:44 AM
Cute indeed, Bill - thanks a lot :U
Title: Re: Show free Ram on a tiny title bar example.
Post by: Bill Cravener on February 28, 2012, 11:23:33 AM
Thanks guys, it's not a bad effort considering I was in a drunken state. :bg
Title: Re: Show free Ram on a tiny title bar example.
Post by: FORTRANS on February 28, 2012, 05:52:46 PM
Hi,

   Works with Windows 2000.  Nice one.  Windows 98 did
not like it.

Thanks,

Steve N.
Title: Re: Show free Ram on a tiny title bar example.
Post by: Force on February 28, 2012, 07:44:34 PM
Great !   :U
Title: Re: Show free Ram on a tiny title bar example.
Post by: donkey on February 29, 2012, 05:58:08 AM
Hi Bill,

Nice tool. FYI there is a great little function in the SHLWAPI library that will do the bytes to KB/MB/GB/TB conversion for you.

StrFormatByteSize64 (http://msdn.microsoft.com/en-us/library/windows/desktop/bb759971%28v=vs.85%29.aspx)

Takes the headache out of doing all the conversions. (note that though the docs don't say it it does do TB conversions)

Edgar
Title: Re: Show free Ram on a tiny title bar example.
Post by: Bill Cravener on February 29, 2012, 09:57:42 AM
Thanks Edgar, that's yet another of the many I have yet to discover. :bg