Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
ExitWindowsMBS(mode as Integer) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | System | MBS Win Plugin | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Mode constants:
LOGOFF | 0 | Shuts down all processes running in the security context of the process that called the ExitWindows function. Then it logs the user off. |
SHUTDOWN | 1 | Shuts down the system to a point at which it is safe to turn off the power. All file buffers have been flushed to disk, and all running processes have stopped. |
REBOOT | 2 | Shuts down the system and then restarts the system. |
FORCE | 4 | Forces processes to terminate. When this flag is set, the system does not send the WM_QUERYENDSESSION and WM_ENDSESSION messages. This can cause the applications to lose data. Therefore, you should only use this flag in an emergency. |
POWEROFF | 8 | Shuts down the system and turns off the power. The system must support the power-off feature. |
FORCEIFHUNG | 16 | (Windows 2000) Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message. This flag is ignored if FORCE is used. |
The items on this page are in the following plugins: MBS Win Plugin.