Click to See Complete Forum and Search --> : Need to monitor GDI resources


Simon
May 27th, 1999, 10:51 AM
Hi,

I'm trying to monitor the GDI resources in Windows 95. The supplied "Resource Monitor" just displays the stats in percentages and updates too slow. I need to be able to monitor the available GDI resource amount in bytes and with a faster refresh rate.

I am currently using the MEMORYSTATUS structure along with a timer to find out how much physical memory is available thinking it would also go down when GDI resources go down...not so. Does anybody know how to calculate/determine the available GDI resources? Thanks.

typedef struct _MEMORYSTATUS { // mst
DWORD dwLength; // sizeof(MEMORYSTATUS)
DWORD dwMemoryLoad; // percent of memory in use
DWORD dwTotalPhys; // bytes of physical memory
DWORD dwAvailPhys; // free physical memory bytes
DWORD dwTotalPageFile; // bytes of paging file
DWORD dwAvailPageFile; // free bytes of paging file
DWORD dwTotalVirtual; // user bytes of address space
DWORD dwAvailVirtual; // free user bytes
} MEMORYSTATUS, *LPMEMORYSTATUS;

Ravi Bhavnani
May 27th, 1999, 11:59 AM
Simon,

Check out MemWatcher at http://matrixsoftware.com.

/ravi