Forum FAQForum FAQ SearchSearch MemberlistMemberlist   UsergroupsUsergroups RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Wim's BIOS RSS FeedRSS Log inLog in

Detect a Laptop BIOS vs Desktop BIOS using API

 
Post new topic   Reply to topic    Wim's BIOS Forum Index -> Notebook BIOS and other problems

Recommended by Wim's BIOS...

BIOS Agent scan: Upgrade your BIOS! Driver Agent scan: Instant Access to 116,215 Device Drivers Updates!

View previous topic :: View next topic  
Author Message
tgilbert
New visitors - please read the rules.


Joined: 02 Sep 2003
Posts: 1

PostPosted: Wed Sep 03, 2003 1:42 pm     Post subject: Detect a Laptop BIOS vs Desktop BIOS using API Reply with quote

I am writing a program for Windows 95/98/ME/NT/2000/XP in C++. It is important for the program to know whether the computer that is executing the code is a laptop or a desktop. I have been researching for a while various ways to determine and thought that perhaps the presence of a battery would identify 99% of laptop users. (Other thoughts was the presence of a ISA bus, and BIOS)

I tried using the function GetSystemPowerStatus() to determine if a battery is present, but the function relies on the software in Windows being properly configured. I.e. if the power management isn't setup, it will return that a laptop doesn't have a battery, and is running on A/C even when undocked, and unplugged from the electricity.

I was hopeing that there was another way to do this. Is anyone aware of a programatic way to determine if the BIOS is built for a Laptop or build for a Desktop? Or for that matter, does anyone else have any other suggestions?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Wim's BIOS Forum Index -> Notebook BIOS and other problems All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group