Creo recordar que es esto, aunque hace falta que algún experto/maestro lo dé por bueno
Cita:
ShutDownWindows(EWX_POWEROFF); // apagar windows
ShutDownWindows(EWX_REBOOT); // reiniciar windows
ShutDownWindows(EWX_POWEROFF or EWX_FORCE); // forzar apagado
ShutDownWindows(EWX_REBOOT or EWX_FORCE); // forzar reiniciado
shutdownwindows(EWX_LOGOFF); // cerrar session
|
Edito: No había visto tu mensaje,
Caral.