User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

    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

    IT Offers


    Top Authors