victor_liu
June 10th, 2003, 08:33 AM
Hi,
I try to shutdown/terminate the windows systems but don't power off the PC.
I use the InitiateSystemShutdown( NULL, NULL, 0, TRUE, FALSE) in NT4. 2000,XP(have no any service pack), it can help me to do that, but the strange thing is on widnows XP with service pack 1, when the program call InitiateSystemShutdown(), the system was shutdown then the PC was power off too, why ? this situation also happen on Windows Server 2003.
my PC is powered by ATX power supply and ACPI supported in mainboard.
I try the ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, NULL) also, whatever in Windows 98,ME,NT4,2000,XP,2003, it alway shutdown the system then power off the computer. although It have not EWX_POWEROFF parameter, but it still power off the computer.
did you know what method can help me to do this propose, to shutdown system only but not power off the computer ?
thanks.
Victor.
I try to shutdown/terminate the windows systems but don't power off the PC.
I use the InitiateSystemShutdown( NULL, NULL, 0, TRUE, FALSE) in NT4. 2000,XP(have no any service pack), it can help me to do that, but the strange thing is on widnows XP with service pack 1, when the program call InitiateSystemShutdown(), the system was shutdown then the PC was power off too, why ? this situation also happen on Windows Server 2003.
my PC is powered by ATX power supply and ACPI supported in mainboard.
I try the ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE, NULL) also, whatever in Windows 98,ME,NT4,2000,XP,2003, it alway shutdown the system then power off the computer. although It have not EWX_POWEROFF parameter, but it still power off the computer.
did you know what method can help me to do this propose, to shutdown system only but not power off the computer ?
thanks.
Victor.