How to Check Available Windows System ResourcesLast reviewed: October 18, 1996Article ID: Q111508 |
The information in this article applies to:
SUMMARYThe 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 INFORMATIONNOTE: 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:
ARTICLE-ID: Q146424 TITLE : PRB: "Entry Point GetFreeSystemResources Not Found" ErrorFOXTOOLS.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:
REFERENCESMicrosoft FoxPro for Windows FOXTOOLS.WRI Microsoft Windows Software Development Kit "Programmer's Reference, Volume 2: Functions," version 3.1
|
Additional reference words: VFoxWin 3.00 FoxWin 2.50 2.50a 2.50b api fll
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |