• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

Entire System Information through C

Help me experts

How can i get entire System Information of a pc through C. Tell me the function for that or code.
0
sreejith_y
Asked:
sreejith_y
1 Solution
 
MDarlingCommented:
What do you mean by "entire System Information"?

The call (if such a wide ranging call were to exist) would have to be operating system specific.

Are your running linux?, windows 95, 98, Me, Nt,..., BSD, ... ?


0
 
sreejith_yAuthor Commented:

MDarling
I am using Windows 95
0
 
MDarlingCommented:
GetSystemInfo(SYSTEM_INFO*)

GetSystemMetrics(int nIndex)

Have a look at MSDN for more detail.

0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
sreejith_yAuthor Commented:

MDarling,
How can I get the Informations like Processors, Free Memory, Diskdrives of the system through C under DOS?
0
 
sreejith_yAuthor Commented:

MDarling,
How can I get the Informations like Processors, Free Memory, Diskdrives of the system through C under DOS?
0
 
MDarlingCommented:
Under DOS?  Which version of DOS? - haven't done DOS in years.
0
 
sreejith_yAuthor Commented:
MDarling....
What I meant is Turbo C...
0
 
MDarlingCommented:
What you're asking is very difficult.  You'd need a book on DOS that documents the BIOS services.  They would be able to give you much of this information.  There is no library (as far as I can remember) that you can call into in TurboC that would return all of this information.

Memory, however, was a black art under DOS, it would very much depend on what memory managers you had loaded and what version of DOS you are running.  Memory came in a few flavours: normal, upper, extended and expanded.  

I'm afraid my 'memory' just isn't that good and I'm not going to be able to help you with any of the details here.

Regards,
Mike.
0
 
cryptosidCommented:
Use a book called 'ADVANCED MS-DOS PROGRAMMING' BY RAY DUNCAN it gives u a list of all Documented as well as UNDOCUMENTED BIOS SERVICE ROUTINES which can be invoked using interrupts (i am talking about the int86 function) see help on int86 in TURBO C

I believe there IS AN INTERRUPT for getting 'BASIC' System information like BASE MEMORY and how many terminals type of Adapter and stuff...check out the book it is a complete reference if u still don't get the last resort is INTEL MANUALS if u can find one!!
0
 
Kent OlsenData Warehouse Architect / DBACommented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:
Accept cryptosid's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Kent (Kdo)
EE Cleanup Volunteer
0

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now