Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get CPU_Type in c++?

How to get CPU_Type in c++?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mathivanaan
    wrote on last edited by
    #1

    Hi, how to get System CPU_TYPE through C++ code? any method is available? Please share ur idea and url. Regards, M.Mathivanan

    enhzflepE R S 3 Replies Last reply
    0
    • M mathivanaan

      Hi, how to get System CPU_TYPE through C++ code? any method is available? Please share ur idea and url. Regards, M.Mathivanan

      enhzflepE Offline
      enhzflepE Offline
      enhzflep
      wrote on last edited by
      #2

      Just grab it from the registry. Also, you could be more fortunate with the results of your searching. This information has been posted many, many, many times before. HKEY_LOCAL_MACHINE->HARDWARE->DESCRIPTION->System->CentralProcessor

      1 Reply Last reply
      0
      • M mathivanaan

        Hi, how to get System CPU_TYPE through C++ code? any method is available? Please share ur idea and url. Regards, M.Mathivanan

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        See Getting hardware information[^]

        "Real men drive manual transmission" - Rajesh.

        1 Reply Last reply
        0
        • M mathivanaan

          Hi, how to get System CPU_TYPE through C++ code? any method is available? Please share ur idea and url. Regards, M.Mathivanan

          S Offline
          S Offline
          Stefan_Lang
          wrote on last edited by
          #4

          Hardware information can only be retrieved through system libraries, not a standard C++ function. For that reason you should mention the OS you're working on. The answer given above works for Windows systems, but not for e. g. Linux or any Mac OS. Generally speaking, the answer you seek should be in the documentation for your system libraries, which should be available at the website of the manufacturer of the OS (for Linux you might want to check out the site of the distributor). So if you're seeking an URL, that's where you should go.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups