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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Retrieving hardware information thr C++

Retrieving hardware information thr C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwareperformancetutorialquestion
3 Posts 3 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.
  • X Offline
    X Offline
    xiAoYJia
    wrote on last edited by
    #1

    I'm trying to create a simple application using C++ and MFC that is able to retrieve some hardware & general information of my pc and show it on the screen rather than having to check manually. Examples of information to be retrieved include: -Machine Name, Date Created, IP address of my pc, Memory, Users, Last Logon, Last Logoff and etc 1) How to get all this information thr C++ codes? 2) Any website that provide relevant codes or samples? Best Regards, xiAoYJia

    A A 2 Replies Last reply
    0
    • X xiAoYJia

      I'm trying to create a simple application using C++ and MFC that is able to retrieve some hardware & general information of my pc and show it on the screen rather than having to check manually. Examples of information to be retrieved include: -Machine Name, Date Created, IP address of my pc, Memory, Users, Last Logon, Last Logoff and etc 1) How to get all this information thr C++ codes? 2) Any website that provide relevant codes or samples? Best Regards, xiAoYJia

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      I can remember some articles about that on CP, search...! Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      • X xiAoYJia

        I'm trying to create a simple application using C++ and MFC that is able to retrieve some hardware & general information of my pc and show it on the screen rather than having to check manually. Examples of information to be retrieved include: -Machine Name, Date Created, IP address of my pc, Memory, Users, Last Logon, Last Logoff and etc 1) How to get all this information thr C++ codes? 2) Any website that provide relevant codes or samples? Best Regards, xiAoYJia

        A Offline
        A Offline
        avenger_sb25
        wrote on last edited by
        #3

        Hey, the following page provides you with more than enough information. Just select the functions of your choice and see the SYNTAX. All these are WINDOWS API (VC++) functions. They can of course be used in console mode C++ programs compiled under Visual Studio5.0 or above. Link:: System Information functions at MSDN, microsoft(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/system_information_functions.asp) A few functions are namely GetComputerName, GetCurrentHwProfile, GetSystemInfo, GetSystemMetrics(Very Important ;)), GetUserName, SystemParametersInfo etc. etc. etc. Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs :) ...avenger

        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