|
|
|
|
|
- Shutdown via software not allowed
SysShutdown (Function) In french: SysArrête Stops the system or closes the current Windows session. Syntax
<Result> = SysShutdown(<Shutdown mode>)
<Result>: Boolean - True if no problem occurred,
- False otherwise. ErrorInfo returns more details.
The result is immediately sent. Then, the shutdown process is performed in background task.
<Shutdown mode>: Constant Indicates the requested shutdown mode: | | sysLockSession | Locks the current session. | sysLogoff | Ends the current session | sysPoweroff | Stops the system and turns the power off. | sysReboot | Stops and restarts the system. |
Remarks Shutdown via software not allowed If the system does not support software shutdown, SysShutdown simply stops Windows and shows the message: "It is now safe to power off the system".
Related Examples:
|
Unit examples (WINDEV): Managing the Windows session
[ + ] Managing the Windows session by programming with the WLanguage functions. This example explains how to close the Windows session, stop the system and restart the PC, etc.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|