How to Check Available Windows System Resources

ID: Q111508


The information in this article applies to:


SUMMARY

The code sample below demonstrates how FOXTOOLS.FLL can be used to check the available Windows system resources from within FoxPro for Windows or a FoxPro for Windows application.


MORE INFORMATION

NOTE: This code only works under Microsoft Windows versions 3.x (16-bit Windows). Under Windows NT or Windows 95, it causes the following error message:

Entry point GetFreeSystemResources not found.
For more information about how to check available Windows system resources under Windows NT or Windows 95, see the following article in the Microsoft Knowledge Base:
Q146424 PRB: "Entry Point GetFreeSystemResources Not Found" Error
FOXTOOLS.FLL is a FoxPro application programming interface (API) library that allows FoxPro programs to call many Windows dynamic-link library (DLL) functions. The FOXTOOLS.WRI document explains how to use FOXTOOLS.FLL. Both files are located in the GOODIES\FOXTOOLS subdirectory of the main FoxPro for Windows directory.

The GetFreeSystemResources() function returns an integer representing the percentage of unused system, USER, or GDI resources. This function is part of the Microsoft Windows API. This function accepts the following parameters:

   UINT GetFreeSystemResources(fuSysResource)

   UINT fuSysResource      /* Type of resource to check */  
There are three resource types that can be checked:


REFERENCES

Microsoft FoxPro for Windows FOXTOOLS.WRI

Microsoft Windows Software Development Kit "Programmer's Reference, Volume 2: Functions," version 3.1

Additional query words: VFoxWin FoxWin 2.50 api fll fox tools kbvfp300


Keywords          : kbcode FxprgFoxtools 
Version           : 2.50 2.50a 2.50b 3.00
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: August 3, 1999