Looking in the win32 system error codes, there are for example 1641 and 3010 to report a Windows restart. ( you can read the application exit code, from Dos shell, with the variable %ERRORLEVEL% )
Is there a code to report the user to logoff or better to redo the Windows login ?
I don't want to invent my custom code, but to use a known one. It is necessary to fair living with other system management software.
Many software management systems read and use the exit code to report application behaviour. For example : I want to report to the "windows eco-system" that my setup.exe need the user to logoff and logon again. My setup hasn't a GUI but its exit code is read from the parent process and the parent process will decode the error and prompt the user.
BUT the parent process is a big vendor one, not mine, so to have a meaningful communication between the two processes I have to use well-knows codes, as from the microsoft list.
SPOILER : I AM NOT LOOKING FOR RECOMMENDATIONS, BUT FOR THE SPECIFIC VALUE, IF THERE IS ANY USED BY VENDORS LIKE microsoft, symantec, etc...