This is a sample program that I wrote because I wanted some idea of the 
amount of memory that my programs were using. I have include the 'C' source
so other people can make modifications to better suit there needs.
   If anyone has suggestions on how to improve this program please let me
know. I can be reached on my BBS. Following is the info on it:

				      Compu-Plane
				      818 843-3507  300/1200/2400
				      818 843-4874  300/1200/2400/9600 on a Courier HST.
Both lines are 8,N,1 and are available 24 hrs a day. The BBS is also running 
in the protected mode of OS/2.

   The program is split into to 'C' source files, one is just for initialization of 
the PM window. The other is the resident routines. In low memory situations 
the initialization code will be discarded. This allows the resident code to be 
smaller.
   There are two main menu selections. The first changes how fast the 
program updates the memory display. The default is one second, but you can 
change it to 10,30 or 60 seconds. The second selection is the exit selection. 
It seems to make most users more comfortable to have this selection, even 
though you can close it with the system menu.

   Hopefully this example will help others develop OS/2 PM applications. You 
are free to pass this program along to others.