System Information Class | CodeGuru

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 […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 28, 2001
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.