The information in this article applies to:
SYMPTOMSA method for obtaining Windows system resources is described in the following Microsoft Knowledge Base article: Q111508 How to Check Available Windows System ResourcesIf this method is used under Windows 95 or Windows NT, the following error occurs when the function is registered with RegFn():
CAUSEThe GetFreeSystemResources function is not contained in the API libraries searched by default. RESOLUTIONIn the RegFn function, you need to explicitly reference User.exe where this API function is contained. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce BehaviorThis is a modification of the code example in article Q111508. Enter the following commands into a program file, and run the file:
ResolutionIf the following line in the example:
is modified to read as follows:
the example will successfully return system resources in Windows 3.1x,
Windows 95, and Windows NT.
NOTE: The values returned vary in significance depending on the operating system. Under Windows NT, resources are dynamically allocated, and GetFreeSystemResources will always return 90% for GDI, USER, and SYSTEM. Under Windows 95, these are allocated differently. For a discussion of GDI and USER heaps under Windows 95, please see the following articles in the Microsoft Knowledge Base: Q125699 GDI Objects and Windows 95 Heaps Q125676 New User Heap Limits Under Windows 95 Additional query words: VFoxWin
Keywords : kbVFp300 kbVFp300b kbVFp600 FxprgFoxtools |
Last Reviewed: August 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |