Checking Windows Resources From OpenInsight (Functions/Subroutines/Programs)

OpenInsight can show you your available resources with simple API calls to windows.  In the following code example the available resources for USER, GDI, and SYSTEM resources are returned.  You can then display these results in whatever way to you choose.  (In the OI 3.5 sample application there is an example of this in the form of a screen that updates every five seconds.  It is shown in the form of a graph).

 

*************************************

**Getting available resources in OpenInsight

*************************************

 

Declare Function GetFreeSystemResources

 

Equ FREESYSTEMRESOURCES$ To 0

Equ FREEGDIRESOURCES$ To 1

Equ FREEUSERRESOURCES$ To 2

 

* This will set 3 variables to hold the free resources.

 

SystemResources = FREESYSTEMRESOURCES$

DiResources = FREEGDIRESOURCES$

UserResources = FREEUSERRESOURCES$

 

            In the sample application (OI3.5) the code is also shipped and you can refer to that for another way of displaying the results.

 

 

  • kb/kb_articles/kb0117.txt
  • Last modified: 2024/01/30 13:36
  • by 127.0.0.1