ThePhD / infoware

C++ Library for pulling system and hardware information, without hitting the command line.
Creative Commons Zero v1.0 Universal
412 stars 85 forks source link

System abstraction #3

Closed ThePhD closed 7 years ago

ThePhD commented 8 years ago

We need a way of finding out more overarching system information not directly related to the internal hardware. May include:

Fancy:

nabijaczleweli commented 8 years ago

lol fan count, how do you detect that

nabijaczleweli commented 8 years ago

From a quick skim over WinAPI, there doesn't seem to exist a way of getting mouse amount.

ThePhD commented 8 years ago

You'd need RawInput to figure that out. Which requires a Window Handle to work with. So we might have to make an invisible window in the background.

nabijaczleweli commented 8 years ago

Found it, I guess: https://msdn.microsoft.com/en-us/library/windows/desktop/ms645598(v=vs.85).aspx I'll get on that after sleeping. Linux still sucks for getting metadata out of.

TheCatPlusPlus commented 8 years ago

All device enumeration on Windows is done through SetupDi. RawInput gives you a very narrow view into that and you'll need to extract device IDs and use SetupAPI to get anything interesting anyway.

ThePhD commented 8 years ago

Do we really need Fan Count and things like that? I would imagine just for dumping out information for benchmarks or tests, we've already covered all the bases (and fans aren't a thing aside from physical machines; same with mice/keyboard stuff...?)

ThePhD commented 7 years ago

Don't need fan counts and other stuff like that.