Gets the mode of the last Shutdown function call. The mode is useful to identify the type of Shutdown that was performed.
The shutdown mode set when shutdown was called.
nMode = ShutdownMode()
If nMode = 4 Then
Prompt ("Citect closed down and computer was rebooted")