System Information Class
Posted
by Tien Tran Ngoc
on March 28th, 2001
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
- Just copy the Sysinfo.h file to your project
- Add #include "Sysinfo.h" to the header of your dialog class
- 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();

Comments
소스좀 줘요...
Posted by Legacy on 04/16/2003 12:00amOriginally posted by: 고메사랑
한국말은 모르겠지만...그래도 조선말로..쪼깨 씨불립니다...
ReplyUpload project source and dll source, please...........
Source Code
Posted by Legacy on 04/03/2003 12:00amOriginally 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.
ReplyWindows NT Server Faults
Posted by Legacy on 02/18/2003 12:00amOriginally 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,
ReplyVishal
DLL
Posted by Legacy on 12/09/2002 12:00amOriginally posted by: Hee Rak Lee
Hi Everyone!
I'm korean.
Find dll.
URL : http://www.sources.ru/cpp/sysinfo.zip
Have a good day!
ReplyHow to get upload speed
Posted by Legacy on 11/21/2002 12:00amOriginally posted by: samboooo
How to get upload speed
Reply
Need Processor ID
Posted by Legacy on 11/07/2002 12:00amOriginally posted by: Trevisan Roberto
Request,
How I can find oud Processor ID In VB application
Thanks
ReplyShame on you !
Posted by Legacy on 11/02/2002 12:00amOriginally 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!
ReplyHow to use in Visual Studio 6
Posted by Legacy on 10/02/2002 12:00amOriginally 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:00amOriginally posted by: 한글
노코멘트
Reply
DLL도 공개하라 ... 오바
Posted by Legacy on 09/06/2002 12:00amOriginally posted by: 중앙컴퓨터.영등포
dll로 공개하라...오바...
ReplyLoading, Please Wait ...