ExitWindows
- Last UpdatedOct 29, 2026
- 1 minute read
Exits the Windows operating system in a specified manner.
|
Function |
Group |
Execution |
String Exp. |
Windows |
Windows Embedded |
IoT View |
Thin Clients |
Mobile Access |
|---|---|---|---|---|---|---|---|---|
|
ExitWindows |
Module Activity |
Asynchronous |
No |
Supported |
Not supported |
Not supported |
Supported |
Not supported |
Syntax
ExitWindows ( numExitCode )
numExitCode
A numeric code specifying how Windows should be exited:
|
Value |
Description |
|---|---|
|
0 |
Restart |
|
1 |
Log off |
|
2 |
Shut down |
Returned value
No returned values.
Examples
|
Tag Name |
Expression |
|---|---|
|
ExitWindows( 1 ) |