CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    CANADA
    Posts
    9

    Need to monitor GDI resources

    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;





  2. #2
    Join Date
    May 1999
    Location
    Mass, USA.
    Posts
    103

    Re: Need to monitor GDI resources

    Simon,

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

    /ravi



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured