Args
ARG(1) is 1 if the operating system is shutting down (ie, all programs returned a 1 when they handled the QUERYENDSESSION event), or 0 otherwise (ie, some program returned an empty string for QUERYENDSESSION, thus preventing shutdown).
Notes
See also QUERYENDSESSION.