Thema: Delphi WMI Problem

Einzelnen Beitrag anzeigen

nanix
(Gast)

n/a Beiträge
 
#1

WMI Problem

  Alt 13. Jan 2010, 14:44
Hello

i have problem with dynamic WMI classes such as counters.Becouse i can normaly write these classes to a dynamic array.

But what to do when they change.Give me some direction how to solve this i use this code now.

I use himitsu WMI component.Thanks

Delphi-Quellcode:
DynamicInf : array[0..9] of string =
(
'PerfFormattedData_PerfDisk_LogicalDisk',
'PerfFormattedData_PerfDisk_PhysicalDisk',
'PerfFormattedData_PerfOS_Cache',
'PerfFormattedData_PerfOS_Memory',
'PerfFormattedData_PerfOS_Objects',
'PerfFormattedData_PerfOS_PagingFile',
'PerfFormattedData_PerfOS_Processor',
'PerfFormattedData_PerfOS_System',
'PerfFormattedData_PerfProc_Process',
'PerfFormattedData_PerfProc_Thread'
     ) ;
 
  type
  propertys=record
    index:integer;
    name:string;
    Value:String;
  end;

  type
  instance=record
    Index:Integer;
    name:string;
    Propertys: array of Propertys;

  end;

 type
 WMIClass= record
  index:integer;
  name:string;
  Instances:array of instance;
 end;



var
  wmi_class:array of WMIClass;
  Mit Zitat antworten Zitat