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?