System Information Class

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().

Example

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();

Downloads

Download source (including demo) - 30 Kb


Comments

  • 소스좀 줘요...

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

    Originally posted by: 고메사랑

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

    Reply
  • Source Code

    Posted by Legacy on 04/03/2003 12: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.

    Reply
  • Windows NT Server Faults

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

    Originally posted by: Vishal Shah

    hi!
    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,
    Vishal

    Reply
  • DLL

    Posted by Legacy on 12/09/2002 12: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!

    Reply
  • How to get upload speed

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

    Originally posted by: samboooo

    How to get upload speed

    Reply
  • Need Processor ID

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

    Originally posted by: Trevisan Roberto

    Request,
    How I can find oud Processor ID In VB application

    Thanks

    Reply
  • Shame on you !

    Posted by Legacy on 11/02/2002 12: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!

    TNT BRINGS YOUR DLL HOME AND SLEEPS WITH IT ! SHAME ON YOU!

    Reply
  • How to use in Visual Studio 6

    Posted by Legacy on 10/02/2002 12: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

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

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

    Originally posted by: 한글

    노코멘트

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

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

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

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

    Reply
  • Loading, Please Wait ...

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

Top White Papers and Webcasts

  • Live Event Date: September 16, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you starting an on-premise-to-cloud data migration project? Have you thought about how much space you might need for your online platform or how to handle data that might be related to users who no longer exist? If these questions or any other concerns have been plaguing you about your migration project, check out this eSeminar. Join our speakers Betsy Bilhorn, VP, Product Management at Scribe, Mike Virnig, PowerSucess Manager and Michele …

  • As mobile devices have pushed their way into the enterprise, they have brought cloud apps along with them. This app explosion means account passwords are multiplying, which exposes corporate data and leads to help desk calls from frustrated users. This paper will discover how IT can improve user productivity, gain visibility and control over SaaS and mobile apps, and stop password sprawl. Download this white paper to learn: How you can leverage your existing AD to manage app access. Key capabilities to …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds