Announcement

Collapse
No announcement yet.

CPU Type and speed detection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CPU Type and speed detection

    Does anyone know of a Power BASIC 3.5 routine that can be
    used to detect the CPU type and SPEED? I'm trying to develop
    a hardware inventory application which will be executed from
    within a Netware login script, so the routine must be able to
    run in a Windows 95/98 DOS box. Thanks in advance!

    ------------------

  • #2
    Does anyone know of a Power BASIC 3.5 routine that can be
    used to detect the CPU type and SPEED?
    Try this thread: CPU Detection
    If you try to make something idiot-proof, someone will invent a better idiot.

    Comment


    • #3
      Thanks for that link Matthew! The CPUType function will detect the CPU type, however, I still need a routine that will detect the speed of the CPU in Mhz. Thanks for your help!

      ------------------

      Comment


      • #4
        Originally posted by Matthew Berg:
        Does anyone know of a Power BASIC 3.5 routine that can be
        used to detect the CPU type and SPEED?
        Try this thread: CPU Detection
        I'm looking to ID the CPU's in the PC's my application is running in.

        Anyone know if the routine above has been updated for more modern processors?
        Michael Burns

        Comment


        • #5
          Anyone know if the routine above has been updated for more modern processors?
          You may notice that the last section of ASM code in that example (under the TesteCPUID label) uses the CPUID instruction for the more "modern" CPUs. You should be able to modify the code yourself for more recent (Intel) processors by checking for the necessary values. Try searching the Intel Developers site for PDF documents containing the phrase "CPUID" for assistance in doing this.
          If you try to make something idiot-proof, someone will invent a better idiot.

          Comment

          Working...
          X