| Home | All functions | Categories |
vuCloseAppEx(LONG,LONG,LONG), Signed
An extended version of vuCloseApp that lets you control how long the safety-net forced terminate waits (Mode 1), and optionally warns users before shutdown.
| Parameter | Data Type | Description |
|---|---|---|
| Mode | LONG | Close mode: 0 = Graceful close request (cooperative, may prompt) 1 = Graceful close request + forced terminate after a delay (safety net) 2 = Hard kill immediately (no prompts, no cleanup) |
| KillDelayMS | LONG | Forced terminate delay in milliseconds (Mode 1 only). If 0 or negative, defaults to the built-in value (7000 ms). |
| WarnSeconds | LONG | If greater than 0, shows a warning message and delays the close request by this many seconds. |
A LONG value:
! Warn users for 30 seconds, then request a graceful close.
! If the app is still running 7 seconds after that, it will be forced to terminate.
MESSAGE('About to run vuCloseAppEx(1,7000,30).' & |
'This will warn the user and then attempt a graceful shutdown in 30 seconds.' & |
'If the app is still running 7 seconds after that, it will be forced to terminate.', |
'vuCloseAppEx Test',ICON:Exclamation)
vuCloseAppEx(1,7000,30)
! After calling, exit your current code path (RETURN from a PROCEDURE, or EXIT from a ROUTINE).
| Home | All functions | Categories |