AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

WMI Problem

Ein Thema von nanix · begonnen am 13. Jan 2010
Antwort Antwort
nanix
(Gast)

n/a Beiträge
 
#1

WMI Problem

  Alt 13. Jan 2010, 13: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
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:06 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz