Click to See Complete Forum and Search --> : How To ShutDown Windows Through Program


Pol Pal
March 31st, 1999, 02:10 AM
Hi


How To ShutDown Windows Through Program..


Polpal

Raphael Phan
March 31st, 1999, 02:18 AM
Hi,


use ExitWindowsEx(EWX_SHUTDOWN,0);


good luck


Raphael

Ruben
March 31st, 1999, 08:08 AM
Hi,


you can shellexecute the following:

rundll32 user.exe,exitwindows


this will windows shutdown at anytime, I discovered that the ExitWindowsEx function doesn't work in all cases...


grtz,

Ruben

Mallela Srinvas
July 7th, 1999, 11:09 AM
i tried but i was unsuccessful can you send me a sample program......
regards
murthy

Lothar Haensler
July 7th, 1999, 11:15 AM
use the search function to search for "Shutdown"- I posted sample code a few hours ago that takes care of setting privileges for ExitWindowsEx on Nt.