How i can shutdown my computer in C ?

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
nabil828
Posts:3
Joined:Thu Sep 04, 2008 10:57 pm
How i can shutdown my computer in C ?

Post by nabil828 » Sat Dec 20, 2008 9:47 am

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 :?:

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Post by Mike » Sun Dec 21, 2008 4:54 pm

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.

nabil828
Posts:3
Joined:Thu Sep 04, 2008 10:57 pm

hi mike

Post by nabil828 » Tue Jan 06, 2009 10:25 pm

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

Andyhhp
Moderator
Posts:387
Joined:Tue Oct 23, 2007 10:05 am
Location:127.0.0.1
Contact:

Post by Andyhhp » Wed Jan 07, 2009 2:49 pm

APM
APCI

Enjoy

~Andrew
Image

Post Reply