home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1805 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  1.3 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!slahiri
  2. From: slahiri@magnus.acs.ohio-state.edu (Santanu Lahiri)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Free System Resources problem
  5. Message-ID: <1992Sep11.145945.12860@magnus.acs.ohio-state.edu>
  6. Date: 11 Sep 92 14:59:45 GMT
  7. Sender: news@magnus.acs.ohio-state.edu
  8. Distribution: usa
  9. Organization: The Ohio State University
  10. Lines: 21
  11. Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
  12.  
  13. Hi,  I am trying to calculate FSR values using MS SDK 3.1.  I am using
  14. the GetFreeSystemResources call, but I have run into a problem.  For some
  15. reason, the two calls
  16.  
  17. nFSRSys = GetFreeSystemResources (GFSR_SYSTEMRESOURCES);
  18. nFSRGdi = GetFreeSystemResources (GFSR_GDIRESOURCES);
  19.  
  20. always seem to return the same value.  I have been checking the free memory
  21. available as well, and I am finding that even when that changes by some large
  22. amount, say about one megabyte, there is no change in the nFSRSys value.  On
  23. the other hand, any time nFSRGdi changes, it is immediately reflected in
  24. nFSRSys as well.  Can anyone confirm this?  If this is as it should be, what
  25. exactly is GFSR_SYSTEMRESOURCES returning?
  26.  
  27. Thanks.
  28.  
  29.  
  30. -- 
  31. Santanu
  32. -------------------------------------------------------------------------------
  33. :: cat flames > /nev/dull                     slahiri@magnus.acs.ohio-state.edu
  34.