Hey all I've got a question I was just pondering. When you tell Windows or Linux or whatever to shutdown, what actually happens? I'm not going to be writing any sort of code for this, but I was just curious. :alright:
Posted on 2004-02-10 21:42:40 by DaRetard
What it happens is that IF windows recognises the APM BIOS and chipset it will send the shutdown command and the BIOS/chipset will shutdown the PC via the ATX power supply

Sometimes it has to go back into realmode to do this (on some chipsets) and it might NOT succed into doing this
so you will see the message "it is now safe to shut down your PC" on screen

You can not write code to do this directly (aka via out to chipset ports) in Win2k or WinXP without coding an KMD driver.

However i guess Windows has an normal API for this
Posted on 2004-02-11 09:29:44 by BogdanOntanu
Thanks ;)
Posted on 2004-02-11 18:47:55 by DaRetard
ExitWindowsEx - and be sure to grab the necessary privilege first... there's probably sample code somewhere around this board for doing this...
Posted on 2004-02-12 08:43:46 by f0dder