This function is used to close a Windows session, shut down the system, turn off the PC or restart the system.
Context
Windows client,
Windows server,
Adelia Cloud client.
Parameters
NUM_BIN_4 |
Action |
1: stops all applications and closes the Windows or Cloud session (i.e. the user is disconnected) 2: shuts down the system and turns off the PC if it can be done 3: shuts down and restarts the system 4: shuts down the system until the user can: - either restart the system, |
NUM_BIN_4 |
Forces |
Forces the action defined in the Action parameter, otherwise all the applications managing the system shutdown can cancel the action defined in Action. |
NUM_BIN_4 |
ReturnCode |
Return code for the operation: = 0 if the function is run properly, otherwise <> 0 |
NUM_BIN_4 |
SecondaryCode |
Additional return code: <> 0 if the return code is not equal to 0, = 0 if the return code is equal to 0. |
Example
Action = 1
Forces = 0
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxExitWindows' Action Forces ReturnCode SecondaryCode
List of the VaToolBx functions by topic