View Single Post
Old Oct 25th, 2006, 6:06 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I'm thinking that's not at all what he wants. I would suggest beginning with something like ACPI. Note that not all machines are equipped with this ability. If you're dealing with some relatively common machine, a peep at the BIOS should tell you if APM is available. For something like a desktop PC, you're getting into the driver area, which suggests that you can't just pop some inline assembly into your app.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote