The information in this article applies to:
SUMMARYIn the Microsoft Windows graphical environment, the About dialog box in the Program Manager displays a value that indicates the amount of free system resources available at a given time. The text below documents this calculation and the methods that an application can use to calculate this figure. MORE INFORMATION
Windows uses the same method to calculate the percentage of free
system resources in each of its operating modes (real mode, standard
mode, and enhanced mode under Windows 3.0, and standard mode and
enhanced mode under Windows 3.1).
Or, in other words:
Under Windows 3.1, an application can call the GetFreeSystemResouces
function with the GFSR_SYSTEMRESOURCES value to obtain the percentage
of free system resources. Because this function is not present in
Windows 3.0, an application that runs in both environments must
explicitly import this function from the user Dynamic-Link Library
(DLL) when the application runs under Windows 3.1.
Under Windows 3.0, an application can use the GetHeapSpaces function to determine the percentage of free system resources as follows:
Because this technique does not provide accurate results under Windows
3.1, an application must determine the version of Windows with which
it is running and perform the calculation accordingly.
Additional query words: 3.00 3.10
Keywords : kb16bitonly kbSDKPlatform kbSysSettings |
Last Reviewed: June 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |