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. processor id

processor id

Scheduled Pinned Locked Moved C / C++ / MFC
jsonworkspace
9 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.
  • S Offline
    S Offline
    slah
    wrote on last edited by
    #1

    i need to get a value of some environment variable. what API can be used to get the value of environment variable

    J 1 Reply Last reply
    0
    • S slah

      i need to get a value of some environment variable. what API can be used to get the value of environment variable

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      getenv, but I don't think you can get the processor ID with this method. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      D R 2 Replies Last reply
      0
      • J Joaquin M Lopez Munoz

        getenv, but I don't think you can get the processor ID with this method. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #3

        I think he's talking about the PROCESSOR_IDENTIFIER environment variable. Q261186 - Computer Randomly Plays Classical Music

        J 1 Reply Last reply
        0
        • D Daniel Turini

          I think he's talking about the PROCESSOR_IDENTIFIER environment variable. Q261186 - Computer Randomly Plays Classical Music

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          Didn't know that env variable existed! I've just tried it and it actually returns some info on the processor. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          1 Reply Last reply
          0
          • J Joaquin M Lopez Munoz

            getenv, but I don't think you can get the processor ID with this method. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

            R Offline
            R Offline
            Ravi Bhavnani
            wrote on last edited by
            #5

            Do you have sample code to get the processor id (assuming it's enabled)? Code to enable it would also come in handy! Thanks, /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

            J 2 Replies Last reply
            0
            • R Ravi Bhavnani

              Do you have sample code to get the processor id (assuming it's enabled)? Code to enable it would also come in handy! Thanks, /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

              J Offline
              J Offline
              Joaquin M Lopez Munoz
              wrote on last edited by
              #6

              const char * processor_identifier=getenv("PROCESSOR_IDENTIFIER");

              This variable is not available on every Windows OS (it is on my Windows 2000, and it is not on the Win98 system I've got home). Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

              R 1 Reply Last reply
              0
              • R Ravi Bhavnani

                Do you have sample code to get the processor id (assuming it's enabled)? Code to enable it would also come in handy! Thanks, /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

                J Offline
                J Offline
                Joaquin M Lopez Munoz
                wrote on last edited by
                #7

                I've just run into voodoopriestess' (sic) CAMEL - CPU Identifier Class[^], which seems a far more powerful way to obtain info about current processor. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

                R 1 Reply Last reply
                0
                • J Joaquin M Lopez Munoz

                  const char * processor_identifier=getenv("PROCESSOR_IDENTIFIER");

                  This variable is not available on every Windows OS (it is on my Windows 2000, and it is not on the Win98 system I've got home). Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #8

                  Hi Joaquin, actually I was looking for a wrapper for the ASM code that enables/disables advertising the processor id and also a way to read it from the chip (i.e. what Intel's utility does). /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

                  1 Reply Last reply
                  0
                  • J Joaquin M Lopez Munoz

                    I've just run into voodoopriestess' (sic) CAMEL - CPU Identifier Class[^], which seems a far more powerful way to obtain info about current processor. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

                    R Offline
                    R Offline
                    Ravi Bhavnani
                    wrote on last edited by
                    #9

                    YOWZA! Thanks! /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

                    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