Anyone know how to turn off the computer under windows xp?
I did it using windows 98 or under.
I am making a program and i need to turn off the computer after certain number of minutes.
Printable View
Anyone know how to turn off the computer under windows xp?
I did it using windows 98 or under.
I am making a program and i need to turn off the computer after certain number of minutes.
first.....visit this page....
===Absolute Windows Shut Down ===
http://www.planet-source-code.com/xq...s/ShowCode.htm
read it .... it is almost completed.....
if you want to turn off insert this code
===> (general) (declarations)
Private Const EWX_POWEROFF = 8
===> to turn off write
ExitWindowsEx (EWX_POWEROFF), &HFFFF