Results 1 to 3 of 3

Thread: How to get CPU ID?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    14

    Arrow How to get CPU ID?

    Hello Guys,
    How can I Getting CPU ID only with code
    without any ocx
    help me plz

  2. #2
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    Re: How to get CPU ID?

    try this code , or here http://allapi.mentalis.org/agnet/apiguide.shtml or api forum.

    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
        'KPD-Team 1998
        'URL: http://www.allapi.net/
        '[email protected]
        '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

  3. #3
    Banned learning c's Avatar
    Join Date
    Mar 2007
    Location
    canberra (australia's capital)
    Posts
    198

    Re: How to get CPU ID?

    also see robdog's answer here:
    http://www.vb-forum.com/printthread.php?t=303113

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