I need to write a function (c or c++) that tells whether the computer is a notebook or a desktop PC. Do you know if there is a win32 function I can call or maybe a windows registry setting I can read. Any other method? Help is very much appreciated.
New laptop or old laptop? The newer ones tend to have the mobile chipset with speed step stuff. At a guess if you just scan the registry for something like that (whatever appears in the properties of My Computer), you can work out what it is.
Unfortunately, not all laptops use laptop chips. Some of the old ones use the normal chipset so you'll have problems there.
There might also be an entry for a battery somewhere.
The only problem with checking for batteries is if you are running off mains like we're doing with our Dell laptops at the moment because the tech dept has taken out all the batteries in case they explode. I don't know if it still reports that there is a battery.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.