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 find out whether my system is 16, 32 or 64 bit ?

How to find out whether my system is 16, 32 or 64 bit ?

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

    Hi All, How to find out whether my system is 16, 32 or 64 bit ? both by programmatically and manullay ????

    N M C 3 Replies Last reply
    0
    • Y Yashusid

      Hi All, How to find out whether my system is 16, 32 or 64 bit ? both by programmatically and manullay ????

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      I dont know whether there is any window APIs for this. But you can get this information using WMI. check the Win32_Processor class.

      nave [OpenedFileFinder]

      1 Reply Last reply
      0
      • Y Yashusid

        Hi All, How to find out whether my system is 16, 32 or 64 bit ? both by programmatically and manullay ????

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Call IsWow64Process() to tell if the OS is 32-bit or 64-bit.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ I work for Keyser Söze

        1 Reply Last reply
        0
        • Y Yashusid

          Hi All, How to find out whether my system is 16, 32 or 64 bit ? both by programmatically and manullay ????

          C Offline
          C Offline
          cmk
          wrote on last edited by
          #4

          As a hack you could use sizeof(int*) (any type will do, not just int). Or, sizeof(int) for 16/32.

          ...cmk The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying. - John Carmack

          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