Hardware Daten auslesen --> CPU-Frequenz und RAM Größe



  • Hallo,

    ich suche eine Möglichkeit, System-Infos auszulesen wie z.B.: CPU-Freq. oder RAM Größe.

    Könnt Ihr mir bitte einen Tipp geben.

    Gruß

    Andreas





  • Verwendet dazu WMI... siehe dazu mein Beispielprogramm:
    http://blog.kalmbachnet.de/?postid=29

    z.B. "Win32_Processor" liefert:

    ----------------------------
    AddressWidth: 32
    Architecture: 0
    Availability: 3
    Caption: x86 Family 15 Model 3 Stepping 4
    CpuStatus: 1
    CreationClassName: Win32_Processor
    CurrentClockSpeed: 3192
    CurrentVoltage: 15
    DataWidth: 32
    Description: x86 Family 15 Model 3 Stepping 4
    DeviceID: CPU0
    ExtClock: 800
    Family: 2
    L2CacheSize: 0
    Level: 15
    LoadPercentage: 0
    Manufacturer: GenuineIntel
    MaxClockSpeed: 3192
    Name: Intel(R) Pentium(R) 4 CPU 3.20GHz
    PowerManagementSupported: False
    ProcessorId: BFEBFBFF00000F34
    ProcessorType: 3
    Revision: 772
    Role: CPU
    SocketDesignation: Microprocessor
    Status: OK
    StatusInfo: 3
    Stepping: 4
    SystemCreationClassName: Win32_ComputerSystem
    SystemName: PIV3200
    UpgradeMethod: 4
    Version: Modell 3, Stepping 4
    ----------------------------
    AddressWidth: 32
    Architecture: 0
    Availability: 3
    Caption: x86 Family 15 Model 3 Stepping 4
    CpuStatus: 1
    CreationClassName: Win32_Processor
    CurrentClockSpeed: 3192
    CurrentVoltage: 15
    DataWidth: 32
    Description: x86 Family 15 Model 3 Stepping 4
    DeviceID: CPU1
    ExtClock: 800
    Family: 2
    L2CacheSize: 0
    Level: 15
    LoadPercentage: 0
    Manufacturer: GenuineIntel
    MaxClockSpeed: 3192
    Name: Intel(R) Pentium(R) 4 CPU 3.20GHz
    PowerManagementSupported: False
    ProcessorId: BFEBFBFF00000F34
    ProcessorType: 3
    Revision: 772
    Role: CPU
    SocketDesignation: Microprocessor
    Status: OK
    StatusInfo: 3
    Stepping: 4
    SystemCreationClassName: Win32_ComputerSystem
    SystemName: PIV3200
    UpgradeMethod: 4
    Version: Modell 3, Stepping 4

    oder "Win32_PhysicalMemory" liefert:

    ----------------------------
    BankLabel:
    Capacity: 536870912
    Caption: Realer Speicher
    CreationClassName: Win32_PhysicalMemory
    DataWidth: 64
    Description: Realer Speicher
    DeviceLocator: CHANNEL A DIMM 0
    FormFactor: 8
    InterleaveDataDepth: 0
    InterleavePosition: 0
    MemoryType: 17
    Name: Realer Speicher
    PositionInRow: 1
    Speed: 400
    Tag: Physical Memory 0
    TotalWidth: 64
    TypeDetail: 128
    ----------------------------
    BankLabel:
    Capacity: 536870912
    Caption: Realer Speicher
    CreationClassName: Win32_PhysicalMemory
    DataWidth: 64
    Description: Realer Speicher
    DeviceLocator: CHANNEL B DIMM 0
    FormFactor: 8
    InterleaveDataDepth: 0
    InterleavePosition: 0
    MemoryType: 17
    Name: Realer Speicher
    PositionInRow: 1
    Speed: 400
    Tag: Physical Memory 1
    TotalWidth: 64
    TypeDetail: 128



  • Hi,

    danke für die schnellen Antworten. Gibt es keine reine Win32 Lösung zur Anzeige des Arbeitsspeichers?

    mfg

    Andreas


Anmelden zum Antworten