System Information Class


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

Environment:Windows 9x, Visual C++ 5.0

This is my class for getting almost all the information in your system with only two lines of code. The returned information includes:

Information returned via the SysInfo class

  • Windows Version
  • Processor Information
    • Type
    • MMX compatible?
    • MHZ
    • CoProcessor Presents?
    • Number of CPUs
  • Communications
    • Computer Name
    • User Name
    • Modems installed
    • Info of Modem #1
    • PortSubClass
    • Driver
    • Manufacturer
    • Model
    • Info of Modem #2
    • LANcard:
    • NIC Address
    • Name
    • InfFile
    • NetClient
    • Network Protocols
    • TCP/IP (the protocol you use to connect to the Internet and wide-area networks)
    • IPX/SPX-compatible Protocol (the protocol NetWare and Windows NT servers, and Windows 95 computers use to communicate)
  • Directories
    • Windows Directory
    • System Directory
    • Temp Directory
  • Disk Information
    • Drive Type (e.g., Fixed Disk, etc.)
    • Volume Name
    • Volume Serial
    • Total Space
    • Free Space
  • Display Information
    • Display Resolution: 640 x 480
    • Display Colors: 65536 -16bits HighColor
  • Memory Information
    • Total Physical RAM
    • Free Physical RAM
    • Total Page File
    • Free Page File
    • Total Virtual Memory
    • Free Virtual Memory
  • Printer Information
    • ServerName
    • PrinterName
    • ShareName
    • PortName
    • DriverName
    • Description
    • Location
    • Processor
    • Processor param
    • DataType
    • Status
    • Current jobs
    • Current printing speed: ? Page(s)/minute
    • Print to the following port: \\YOURSERVER\.Print_Queue.???

Using the SysInfo class

  1. Just copy the Sysinfo.h file to your project
  2. Add #include "Sysinfo.h" to the header of your dialog class
  3. Create an object of Sysinfo and just call the member function: TNTGetInfo().


The TNTGetInfo function returns a CString object containing all of the information (with line break). And then you can save/copy or send them.
Sysinfo m_system;
CString m_content=m_system.TNTGetInfo();


Download source (including demo) - 30 Kb


  • 소스좀 줘요...

    Posted by Legacy on 04/16/2003 07:00am

    Originally posted by: 고메사랑

    한국말은 모르겠지만...그래도 조선말로..쪼깨 씨불립니다...
    Upload project source and dll source, please...........

  • Source Code

    Posted by Legacy on 04/03/2003 08:00am

    Originally posted by: Rana Pratap Chittod

    No Source code. I request codeguru to remove this article or add new section in codeguru where people can post their unsourced contributions.

  • Windows NT Server Faults

    Posted by Legacy on 02/18/2003 08:00am

    Originally posted by: Vishal Shah

    my problem is how to detect the faults(hardware and some software) that are generated on windows NT server.if u can guide me about this porblem than i will be very greatfull to u.

    Thniking u,

  • DLL

    Posted by Legacy on 12/09/2002 08:00am

    Originally posted by: Hee Rak Lee

    Hi Everyone!
    I'm korean.

    Find dll.

    URL : http://www.sources.ru/cpp/sysinfo.zip

    Have a good day!

  • How to get upload speed

    Posted by Legacy on 11/21/2002 08:00am

    Originally posted by: samboooo

    How to get upload speed

  • Need Processor ID

    Posted by Legacy on 11/07/2002 08:00am

    Originally posted by: Trevisan Roberto

    How I can find oud Processor ID In VB application


  • Shame on you !

    Posted by Legacy on 11/02/2002 08:00am

    Originally posted by: Trinh Hiep

    I'm so disappointed when coming across such garbage article like this. Codeguru is a respectful learning source for programmers around the world. It is a site for generous sharing and open discussions, not anything for sophisticated folks to 'broadcast' their name and their work. This guy seems so big-headed to let everyone know what he has done, ok may your code have been something useful for your work but not for us! The thing you've done is just to gather odds and ends about the system, which I can always obtain by some popular and professional tools like those of Norton Utilities (of cos' yours is nothing as compared to those!!!). Codeguru-members do not need freewares, we want something useful for learning. That is the motto of it, as I understand so far. I'm a Vietnamese national myself, yet, I don't think us Vietnamese have high sense of team-work and sharing. Some of my classmates sometimes advertised what they have done,yet,they kept secret about their inside. Firstly I thought,ooh,'must be very sophisticated and original' and felt not encouraged enough to ask them for source code. Hm, but when I could access to The Internet, I was totally surprised...it is really an endless source for study, facilitated by so generous and gifted programmers around the world. This is the key point as to the question: Why our (Vietnamese) IT is so backward as compared with the West? Not because we are poor and suffer from paintful wars, but it's ourselves - we are so selfish and big-headed, AQ-like !!!

    And, your article once again depicts clearly our national spirit. I think it's high time we changed our mind, esp. when joining forums like Codeguru.

    Again, thanks Codeguru - you are a best friend, tremendously helpful and generous. And, I suggest the webmaster getting rid of such fake article like this.

    PS: Again...,TNT's English is so poor and not sophisticated as he seems to be!


  • How to use in Visual Studio 6

    Posted by Legacy on 10/02/2002 07:00am

    Originally posted by: Rohan

    Hi there, great little dll, i am using Visual C++ 6, will it still work, i cant seem to make it work.

    Get an error saying

    C:\My Documents\info\sysinfo.h(13) : error C2079: 'Sysinfo' uses undefined class 'AFX_EXT_CLASS'

    Any one know how to fix this?

    Thanks Rohan

  • 머야 이거... DLL 소스가 엄짜나...

    Posted by Legacy on 09/11/2002 07:00am

    Originally posted by: 한글


  • DLL도 공개하라 ... 오바

    Posted by Legacy on 09/06/2002 07:00am

    Originally posted by: 중앙컴퓨터.영등포

    dll로 공개하라...오바...

  • Loading, Please Wait ...

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date