Results 1 to 3 of 3

Thread: Cpu

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    2

    Question

    what are the API that show CPU information , same as the FSB , the clock rate or the temperature...

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    GetSystemInfo API can retrieve some CPU characteristics.
    Code:
    Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM_INFO)
    Private Type SYSTEM_INFO
        dwOemID As Long
        dwPageSize As Long
        lpMinimumApplicationAddress As Long
        lpMaximumApplicationAddress As Long
        dwActiveProcessorMask As Long
        dwNumberOrfProcessors As Long
        dwProcessorType As Long
        dwAllocationGranularity As Long
        dwReserved As Long
    End Type
    Private Sub Form_Load()
        Dim SInfo As SYSTEM_INFO
        'Set the graphical mode to persistent
        Me.AutoRedraw = True
        'Get the system information
        GetSystemInfo SInfo
        'Print it to the form
        Me.Print "Number of procesor:" + str$(SInfo.dwNumberOrfProcessors)
        Me.Print "Processor:" + str$(SInfo.dwProcessorType)
        Me.Print "Low memory address:" + str$(SInfo.lpMinimumApplicationAddress)
        Me.Print "High memory address:" + str$(SInfo.lpMaximumApplicationAddress)
    End Sub
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    2
    thx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width