2
votes
Vote UpVote

WMI Tasks using Delphi – Computer Hardware

The Road to Delphi – Determine how much free memory a computer has Use the class Win32_OperatingSystem and the FreePhysicalMemory property. const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant; FWbemObjectSet: OLEVariant; FWbemObject : OLEVariant; oEnum : IEnumvariant; iValue : LongWord; begin; FSWbemLocator := CreateOleObject('WbemScripting.SWbemLocator'); FWMIService := FSWbemLocator.ConnectServer('localhost', 'root\cimv2', '', ''); FWbemObjectSet:= FWMIService.ExecQuery('SELECT FreePhysicalMemory FROM ...
Favorite? Off-Topic? Rodrigo @ 2011-10-21 04:16

Statistics

Visits: 793
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Chiral
stukelly
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)