|
|
|
|
- Shutdown via software not allowed
SysShutdown (Function) In french: SysArrête Stops the system or closes the current Windows session. // Stops the system and turns the power off SysShutdown(sysPoweroff)
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 shut down, SysShutdown stops Windows and displays the following message on the computer: "You can now switch your computer off".
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|