Page 1 of 1

How i can shutdown my computer in C ?

Posted: Sat Dec 20, 2008 9:47 am
by nabil828
Hi,
I'm developing a simple OS .. I'm know loading the Kernel successfully .. but i need a (Assembly or C) code to shutdown My PC.

plz help
:D :?:

Posted: Sun Dec 21, 2008 4:54 pm
by Mike
Hello,

It depends on whether you want to use APM (Advanced Power Management) or ACPI (Advanced Configuration and Power Interface) specifications. Both of these specifications provide standard methods for working with different power functions, including shutting down.

hi mike

Posted: Tue Jan 06, 2009 10:25 pm
by nabil828
i searched for Advanced Power Management to use it to shutdown the computer using C but i found nothin useful ,could you send me some references or links or code to let the computer shutdown.

cheers,
Nabil

Posted: Wed Jan 07, 2009 2:49 pm
by Andyhhp
APM
APCI

Enjoy

~Andrew