How to show system resource percentage used ?

What VB code obtains sytem resources either left or used, like the percentage shown in Control Panel/System/Resources?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Win 9x only:
"Obtaining Memory Statistics & System Resources"
' #VBIDEUtils#************************************************************
' * Programmer Name  : Waty Thierry
' * Web Site         :
' * E-Mail           :
' * Date             : 28/06/99
' * Time             : 12:41
' **********************************************************************
' * Comments         : Determine the system resources
' *
' *
' **********************************************************************

' Wondering how To determine the values that show up In the Resource Meter that comes With Windows 9x?  Or how To Get the value displayed In Explorer's Help, About dialog?  Use the Resource Meter's own dll's, that's how.  This is useful on 9x machines.  You can let the user specify a percentage.  Then check the system resources before you shell to another application.   If the resources dip below the value set by the user, issue a warning message

Declare Function pBGetFreeSystemResources Lib "rsrc32.dll" Alias "_MyGetFreeSystemResources32@4" (ByVal iResType As Integer) As Integer

Private Sub cmdGo_Click()

   Const SR = 0
   Const GDI = 1
   Const USR = 2

   lblUser = CStr(pBGetFreeSystemResources(USR))
   lblSystem = CStr(pBGetFreeSystemResources(SR))
   lblGDI = CStr(pBGetFreeSystemResources(GDI))

End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hmmm... start a new project, click 'add form', select 'About Dialog'
in form1 - add a button.
on the button click event  - add :

frmAbout.Show 1

run the prog.
click the button.
click 'System Info'

does that info satisfies you ???
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.